Patchwork [Bug,4576] New: hg revert --interactive is broken on local modification

login
register
mail settings
Submitter mercurial-bugs@selenic.com
Date March 25, 2015, 4:51 p.m.
Message ID <bug-4576-285@http.bz.selenic.com/>
Download mbox | patch
Permalink /patch/8263/
State Not Applicable
Headers show

Comments

mercurial-bugs@selenic.com - March 25, 2015, 4:51 p.m.
http://bz.selenic.com/show_bug.cgi?id=4576

          Priority: normal
            Bug ID: 4576
                CC: mercurial-devel@selenic.com
          Assignee: bugzilla@selenic.com
           Summary: hg revert --interactive is broken on local
                    modification
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: pierre-yves.david@ens-lyon.org
          Hardware: All
            Status: UNCONFIRMED
           Version: default branch
         Component: Mercurial
           Product: Mercurial

The patch-to-test below display that revert interactive on local modification
is broken. This happen because me "move" the local file away during the backup
process (as it is to be replace by a new checked out version when --interactive
is not used)

Patch

--- /home/pyd/src/mercurial-dev/tests/test-revert-interactive.t
+++ /home/pyd/src/mercurial-dev/tests/test-revert-interactive.t.err
@@ -207,4 +207,9 @@ 
   f

   $ hg st
+  M f
+  M folder1/g
+  R folder1/i
   $ hg revert --interactive f
+  abort: No such file or directory: '$TESTTMP/a/f'
+  [255]