[Bug 3920] New: revert does not restore copy info

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Thu May 2 23:37:13 CDT 2013


http://bz.selenic.com/show_bug.cgi?id=3920

          Priority: normal
            Bug ID: 3920
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: revert does not restore copy info
          Severity: bug
    Classification: Unclassified
                OS: All
          Reporter: bos at serpentine.com
          Hardware: All
            Status: UNCONFIRMED
           Version: 2.6
         Component: Mercurial
           Product: Mercurial

Easy repro. First the setup:

hg init a
cd a
echo a>a
hg commit -A -m a
hg rename a b
hg commit -m b

Then the bug:

hg update 0
hg revert -r 1 -a
hg status -C

This correctly identifies "a" as removed and "b" as added, but does not
indicate that "a" was in fact renamed to "b".

So we get this output:

A b
R a

We should have gotten this:

A b
  a
R a

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list