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

            Bug ID: 6533
           Summary: hg commit --interactive doesn't handle deslecting all
                    edits of a rename
           Product: Mercurial
           Version: default branch
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzi...@mercurial-scm.org
          Reporter: dpl...@google.com
                CC: mercurial-devel@mercurial-scm.org
    Python Version: ---

Reproduction:

  > hg init repo
  > cd repo
  > echo foo > foo
  > hg commit -Am 'commit 1'
  > hg mv foo bar
  > echo bar >> bar
  > hg commit -im 'commit 2'
  # Deslect the `+bar` diff hunk, but keep the file (rename) selected

Expected state:
  > hg status
  M bar
  > hg diff
  --- a/bar
  +++ b/bar
  @@ -1,1 +1,2 @@
  foo
  +bar

Actual state:
  > hg status
  # No output
  > hg diff
  # No output
  > cat bar
  foo
  bar  # Hunk was committed despite deselection

I've identified the root cause of this error and will send a patch shortly for
it. Filing for reference.

-- 
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