[Bug 6855] New: Copy information is lost on fold

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Thu Nov 30 16:12:53 UTC 2023


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

            Bug ID: 6855
           Summary: Copy information is lost on fold
           Product: Mercurial
           Version: 6.5.2
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: jaraco at jaraco.com
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

When using fold, the copy information is lost:

```
 draft @ hg init changeset-copies; cd changeset-copies
 changeset-copies default @ touch foo
 changeset-copies default @ hg commit -A -m "Adding foo"
adding foo
 changeset-copies default @ hg mv foo bar
 changeset-copies default @ hg commit -m "Renaming foo to bar"
 changeset-copies default @ hg status --change .
A bar
  foo
R foo
 changeset-copies default @ touch baz
 changeset-copies default @ hg commit -A -m "Adding baz"
adding baz
 changeset-copies default @ hg fold --from .^1 -m "folded"
2 changesets folded
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 changeset-copies default @ hg status --change .
A bar
A baz
R foo
```

Instead users expect the copy information to be retained:

```
A bar
  foo
A baz
R foo
```

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


More information about the Mercurial-devel mailing list