[Bug 5732] New: amend doesn't respect removed/missing state, but uses filesystem state

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Sat Nov 4 10:37:18 EDT 2017


https://bz.mercurial-scm.org/show_bug.cgi?id=5732

            Bug ID: 5732
           Summary: amend doesn't respect removed/missing state, but uses
                    filesystem state
           Product: Mercurial
           Version: 4.4
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Keywords: regression
          Severity: bug
          Priority: urgent
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: yuya at tcha.org
                CC: mercurial-devel at mercurial-scm.org, singhsrb at gmail.com

Spotted when fixing the bug 5677.

STR:

  $ hg init $TESTTMP/repo4
  $ cd $TESTTMP/repo4

 create a file to be removed

  $ echo a > a
  $ hg add a
  $ hg ci -m0

 create a file to be missing

  $ echo b > b
  $ hg add b
  $ hg ci -m1

 missing file should not be removed

  $ rm b
  $ hg amend
  nothing changed
  [1]

 removed file should be removed even if the file exists in working directory

  $ hg forget a
BROKEN: missing file is removed, and removed file is not removed
  $ hg amend
  saved backup bundle to * (glob)
  $ hg status --change .

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


More information about the Mercurial-devel mailing list