[Bug 6819] New: amend and --obsolete tip behaves unexpectedly

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Sat Jun 10 22:03:10 UTC 2023


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

            Bug ID: 6819
           Summary: amend and --obsolete tip behaves unexpectedly
           Product: Mercurial
           Version: 6.3.2
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: evolution
          Assignee: bugzilla at mercurial-scm.org
          Reporter: zash at zash.se
                CC: mercurial-devel at mercurial-scm.org,
                    pierre-yves.david at ens-lyon.org
    Python Version: ---

Attempted amend a commit and at the same time obsolete a commit that was 'tip'
at the time, but it appears this reference is resolved after the new commit has
been amended, thus itself becoming 'tip'.

$ hg ci --amend --obs tip
starting interactive selection
1 new orphan changesets
abort: changeset e3efd08e9363 cannot obsolete itself

I expected this to work, the reference to 'tip' to be resolved at the beginning
of the transaction before that reference changes.

Mercurial Distributed SCM (version 6.3.2+hg38.7d2199fedac7)
 evolve        external  11.0.0rc0

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


More information about the Mercurial-devel mailing list