[PATCH 0 of 2] keyword: bugfix when all changes in a file were recorded (2nd try with test)

Christian Ebert blacktrash at gmx.net
Mon May 31 20:45:19 CDT 2010


Hi again,

Now with test case.

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
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.
However the problem is reproducible and therefore can be tested
with hg record --logfile.

Calling dirstate.normallookup seems to fix this.

I hope it's not too late for this fix 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