[PATCH 0 of 2] keyword: bugfix when all changes in a file were recorded

Christian Ebert blacktrash at gmx.net
Mon May 31 23:24:18 UTC 2010


Hi,

The first patch fixes a bug in conjunction with record when all
changes in a file were recorded. After the record the file should
be clean in this case.

Strangely enough it _is_ clean when running
hg record --message foo
(as in the tests)
which is why it escaped my attention or rather why I didn't
investigate further why we did not have to fiddle with the
dirstate.

Calling dirstate.normallookup seems to fix this.

I hope it's not too late for this to go into 1.5.


The second patch is less important. The expansion candidates on
commit are retrieved from commitctx, which saves cycling through
the manifest on commit (only needed when recording now).

c


More information about the Mercurial-devel mailing list