Mercurial > evolve
diff hgext3rd/topic/discovery.py @ 2674:9585fac76d2d
topic: adjust head checking wrapping to not interfere with concurrent push
In the previous form, the new topic head was detected as affected and the push
was rejected.
We introduce a of 'test-topic-push.t' using the new race checker as there have
been many compatibility issue with this new checkers.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 28 Jun 2017 18:18:59 +0200 |
parents | 1014341c637b |
children | 304232cc14b6 |
line wrap: on
line diff
--- a/hgext3rd/topic/discovery.py Wed Jun 28 17:23:43 2017 +0200 +++ b/hgext3rd/topic/discovery.py Wed Jun 28 18:18:59 2017 +0200 @@ -64,7 +64,7 @@ for key, value in summary.iteritems(): if ':' in key: # This is a topic if value[0] is None and value[1]: - summary[key] = ([value[1].pop(0)], ) + value[1:] + summary[key] = ([value[1][0]], ) + value[1:] return summary finally: if 'unfiltered' in vars(repo):