timekpr - Keep control of computer usage

How do I make the CIA bot in IRC show my commits in bzr?

Created by Savvas Radevic on on 2009-03-14
Keywords:
CIA IRC bot code commit
Last updated by:
Savvas Radevic on on 2009-04-18

The CIA bot in #timekpr is kindly provided by the http://cia.cv project. It is useful to let people know about commits directly in the IRC channel.

Unfortunately, launchpad does not provide direct built-in support for cia.cv tracking yet:
http://launchpad.net/bugs/342729

How to use it? (TODO TODO!)
If you are a developer/maintainer and want to show your commits in IRC:

0) Register a nickname in cia.vc: http://cia.vc

1) Install cia-clients and bzr:
sudo apt-get install cia-clients bzr

2) Set up bazaar:
bzr launchpad-login
bzr whoami

The commands above will set up the $HOME/.bazaar/ configuration folder, and should list some files:
dir -l $HOME/.bazaar

We are interested in editing bazaar.conf in that folder:
gedit $HOME/.bazaar/bazaar.conf

Add the following 2 lines:
cia_user = medigeek
cia_send_revno = true

This will be read by cia.vc and will link it to my nickname/username, medigeek (username registered in http://cia.vc ).

3) Now configure the branch of timekpr:
bzr branch lp:timekpr timekpr-trunk
cd timekpr-trunk
bzr cia-project timekpr

After this, you should be able to use commands such as:
bzr commit -m 'test'

They will automatically show the new commit.
NOTE: "bzr commit" does NOT send the commit to the launchpad branch - you have to use "bzr push lp:timekpr" for that.