[Bug 6533] New: hg commit --interactive doesn't handle deslecting all edits of a rename
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Fri Jul 2 18:41:05 UTC 2021
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: bugzilla at mercurial-scm.org
Reporter: dploch at google.com
CC: mercurial-devel at 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.
More information about the Mercurial-devel
mailing list