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: bugzi...@mercurial-scm.org
          Reporter: z...@zash.se
                CC: mercurial-de...@mercurial-scm.org,
                    pierre-yves.da...@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.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to