undo changes to a single file earlier in history with subsequent modifications
Greg Ward
greg at gerg.ca
Thu Nov 22 16:05:44 UTC 2012
On 22 November 2012, Wujek Srujek said:
> Hi. I didn't know backout could do that. Apart from a strange message:
>
> hg backout -r 3883 -I file/to/revert
> reverting file/to/revert
> 11 files updated, 0 files merged, 0 files removed, 0 files unresolved
> (how the heck is it 11 when just one file gets changed?)
That's probably an artifact of how backout works: it updates back to
the changeset that you're reverting, reverts the selected files, and
then updates back to wherever you were when you ran "hg backout"
before committing.
Actually, there are *two* updates in there, so I'm not sure why you're
seeing only one "11 files updated..." message. Huh.
Greg
More information about the Mercurial
mailing list