hg backout -X fails in v 2.7.2

Brian Visel aeon.descriptor at gmail.com
Tue Jan 7 16:32:24 UTC 2014


I'm not sure about other versions, but for 2.7.2:

Given the following setup:
me at myhost:~/foo$ hg init ./
me at myhost:~/foo$ nano foo
fried
flying
fish
me at myhost:~/foo$ touch bar
me at myhost:~/foo$ hg add foo bar
me at myhost:~/foo$ hg commit -m "make foo and bar files"

me at myhost:~/foo$ nano foo
fried
fish
me at myhost:~/foo$ hg commit -m 'modify foo'

me at myhost:~/foo$ nano foo
fried
fish
frozen
me at myhost:~/foo$ hg commit -m 'modify foo again'


Shouldn't the following command exclude changes in the 'foo' file?
me at myhost:~/foo$ hg backout -X foo 1
reverting foo
merging foo
0 files updated, 1 files merged, 0 files removed, 0 files unresolved


..and Shouldn't this command also exclude changes in the 'foo' file?:
me at myhost:~/foo$ hg backout -I bar 1
reverting foo
merging foo
0 files updated, 1 files merged, 0 files removed, 0 files unresolved


..but in both cases, r1 is backed out of the 'foo' file, resulting in:
fried
flying
fish
frozen

If I'm using them correctly, it looks like -X and -I arguments just
don't have any effect at all.
If I am using them incorrectly, it seems to me that the behaviour of -X
and -I are rather inconsistent when compared to their usage in the
revert command.

..is this a proper bug that should be filed in the bug tracker?
-Brian




More information about the Mercurial mailing list