Problem with KeywordExtension

Roman Bertle bertle at smoerz.org
Wed May 21 02:25:44 CDT 2008


* Christian Ebert <blacktrash at gmx.net> [080521 08:25]:
> * Roman Bertle on Tuesday, May 20, 2008 at 19:28:25 +0200
> > I have a problem which is, in my opinion, connected to the
> > KeywordExtension:
> 
> <snip>
> 
> > hg diff, even with option --git, shows no differences, but hg status
> > reports modified files.
> 
> FWIW, I can't reproduce it. Neither with [keyword] patterns per
> repo, nor with globally set [keyword] patterns that you seem to
> use.
> 
> Could you provide a small test case?

I will try it.

> > There is a way to circumvent this problem:
> > 
> > 1.) Disable the KeywordExtension
> 
> Could it be that you disabled the extension at some point without
> running "hg kwshrink" before? If you then commit files containing
> expanded keywords you have those expansions stored in history.

The history contains expanded keywords, because it was converted from a
svn repository.

> > 2.) hg clone
> 
> Check if there are now files with "expanded" keywords in the clone.

They are expanded to some old revision.

> > 3.) Reenable the KeywordExtension
> > 4.) Do a hg kwexpand in the clone
> 
> This would cover up expansions mistakenly stored in history.

Best Regards, Roman


More information about the Mercurial mailing list