[Adium-devl] Version Control
Peter Hosey
boredzo at adiumx.com
Wed Feb 6 18:34:13 UTC 2008
On Feb 06, 2008, at 05:55:05, Colin Barrett wrote:
> Primarily, it is annoying to set up. I must either 1) have
> colin at adiumx.com be in my global .hgrc or 2) modify the .hgrc of
> the new repository
> every time I make anew clone to include "username = Colin Barrett
> <colin at adiumx.com>, and if I forget, then there are commits made by
> "Colin Barrett <timber at lava.net> instead.
I just whipped up a solution:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hgclone.py
Type: text/x-python-script
Size: 592 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20080206/019d233a/attachment.bin>
-------------- next part --------------
Usage: hgclone username source-repo [dest-repo]
Example: hgclone 'Colin Barrett <colin at adiumx.com> http://
hg.adiumx.com:8000/adium
All this does is grab the username you want (in this case, ?Colin
Barrett <colin at adiumx.com>?) from its first argument, then pass all
the other arguments on to the real hg clone.
Note that if you ever want to use any flags with hg clone, you'll
have to put them after the username (e.g., hgclone 'Colin Barrett
<colin at adiumx.com>' -U foo bar).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20080206/019d233a/attachment.sig>
More information about the devel
mailing list