[issue3039] hg backout backs out moves by deleting+re-adding, rather than moving

Gavin Sharp bugs at mercurial.selenic.com
Fri Oct 7 14:16:50 CDT 2011


New submission from Gavin Sharp <gavin.sharp at gmail.com>:

I can only reproduce this with a specific (large) repository. I tried
several ways of generating a smaller test repo, but wasn't able to do so and
still reproduce the bug. Apologies for the annoying steps to reproduce.

STR:
1) mkdir hg-test && cd hg-test && hg init
2) hg unbundle http://people.mozilla.com/~gavin/inbound.bundle
3) hg up
4) hg export --git tip | grep "rename to" | wc -l
  -> result is "159" (it's a changeset with many moves)
5) hg backout -m "back out moves" tip
6) hg export --git tip
  -> and observe that the moves got backed out as removals+additions

(observing the patch output of 6 confirms this)

I observed this bug using an HG built from the tip of hg-stable as of this
filing (version 1.9.3+3-fccd350acf79).

----------
messages: 17587
nosy: gavin.sharp
priority: bug
status: unread
title: hg backout backs out moves by deleting+re-adding, rather than moving

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3039>
____________________________________________________


More information about the Mercurial-devel mailing list