hg push aborts with "push includes obsolete changeset" warning, but hg evolve says there's nothing to fix

Diab Jerius djerius at cfa.harvard.edu
Sat Mar 7 05:08:04 UTC 2020


Mercurial 5.3, evolve 9.30, topic 0.18.0

I've been doing some histediting of a repository which has resulted in an
obsolete branch with a bookmark:

% hg heads
changeset:   349:309951f88722
tag:         tip
user:        Diab Jerius <djerius at cfa.harvard.edu>
date:        Fri Mar 06 21:47:33 2020 -0500
summary:     optimize mask creation

changeset:   298:5250d56286e6
bookmark:    master
user:        Diab Jerius <djerius at cfa.harvard.edu>
date:        Fri Mar 06 21:47:33 2020 -0500
obsolete:    rebased using histedit as 349:309951f88722
summary:     optimize mask creation

When I try to push this to an empty repo,  hg aborts with an obsolete
changeset error:

% hg push
pushing to /proj/axaf/simul/src/hg/cxcregion
searching for changes
abort: push includes obsolete changeset: 5250d56286e6!
(use 'hg evolve' to get a stable history or --force to ignore warnings)

However,

% hg evolve
no troubled changesets

Out of desperation I deleted the "master" bookmark associated with the
obsolete branch and the push succeeded.

I don't know what the expected behavior is, but the abort message output by
push didn't provide enough information to debug the issue.

Thanks,
Diab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20200307/f75d0389/attachment.html>


More information about the Mercurial mailing list