Keywords-Extension

Christian Ebert blacktrash at gmx.net
Sat Jan 26 08:39:14 CST 2008


* Roman Kennke on Friday, January 25, 2008 at 15:03:38 +0100
> Am Freitag, den 25.01.2008, 14:55 +0100 schrieb Marcin Kasperski:
>> Well known problem, you must manually update .hg/hgrc after clone,
>> keywords map are not versioned so also not cloned.
> 
> Uhm, I have all my keywords configuration in ~/.hgrc, so this shouldn't
> be a problem, should it? This works:
> 
> hg clone testrepo testclone
> cd testclone
> hg kwexpand
> 
> while the clone alone doesn't. No big deal IMO, but a slight
> inconsitency.

I might submit a patch to enable expansion on clone in case
[keyword] patterns are configured in a global hgrc.

If you can't wait, you can remove 'clone' from nokwcommands in
the source ;)

Still I would encourage to set [keyword] filename patterns on a
per repo basis, unless you really know what you are doing (I
usually don't ;) ).



More information about the Mercurial mailing list