hg diff file1 file2 file3 not preserving the file order
Mihai Ibanescu
misa at redhat.com
Wed Sep 6 14:35:43 UTC 2006
Hi,
I noticed that if you do
hg diff file3 file2 file1
the order in which the diff is performed is not preserved.
The simple fix is in dirstate.py, in walkhelper:
files.sort()
for ff in util.unique(files):
The sort doesn't seem to be necessary there. If the user supplied the files,
they probably want them in order. If they haven't, sorting that is ok (and it
still happens).
Does this make sense?
Misa
More information about the Mercurial
mailing list