why does backout in this situation need to merge anything?

Kevin Bullock kbullock+mercurial at ringworld.org
Tue Dec 11 21:08:57 UTC 2012


On 11 Dec 2012, at 2:51 PM, Wujek Srujek wrote:

> Believe me, I read the docs, but maybe I missed something.
> Why doesn't the first backout require a merge, then?

From `hg help backout`:

   If REV is the parent of the working directory, then this new changeset is
   committed automatically.

In other words, you're just reversing the immediately prior change -- all hg has to do is effectively apply the diff in reverse (the same as `patch -R`).

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock




More information about the Mercurial mailing list