diff hgext3rd/topic/__init__.py @ 3094:e11e018e8338 stable

compat: add an abstraction for 'scmutil.cleanupnodes' The usage of the function was added in 103244e34a9c but is not compatible with Mercurial <= 4.2.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 20 Oct 2017 19:29:56 +0200
parents 326e0ee1eed1
children 7a5941d91fc0
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Fri Oct 20 18:56:15 2017 +0200
+++ b/hgext3rd/topic/__init__.py	Fri Oct 20 19:29:56 2017 +0200
@@ -778,7 +778,9 @@
         rewrote += 1
 
     # create obsmarkers and move bookmarks
-    scmutil.cleanupnodes(repo, successors, 'changetopics')
+    # XXX we should be creating marker as we go instead of only at the end,
+    # this makes the operations more modulars
+    compat.cleanupnodes(repo, successors, 'changetopics')
 
     # move the working copy too
     wctx = repo[None]