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: bugzi...@mercurial-scm.org
          Reporter: y...@tcha.org
                CC: mercurial-devel@mercurial-scm.org, singh...@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.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to