changeset 2077:b467fe430404

destmerge: honor the 'onheadcheck' argument This argument was introduced in Mercurial some time ago but the topic extension was never updated to take it in account. This is now fixed.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 15 Aug 2016 01:50:15 +0200
parents 3c4a20244771
children d87fc4f749e6
files hgext3rd/topic/destination.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/destination.py
+++ b/hgext3rd/topic/destination.py
@@ -16,7 +16,7 @@
     top = p1.topic()
     if top:
         heads = repo.revs('heads(topic(.)::topic(.))')
-        if p1.rev() not in heads:
+        if onheadcheck and p1.rev() not in heads:
             raise error.Abort(_("not at topic head, update or explicit"))
         elif 1 == len(heads):
             # should look at all branch involved but... later