destination: add a ui argument to 'setupdest'
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 30 Mar 2016 03:15:47 -0700
changeset 1939 4268fdd11b74
parent 1938 7e31d3e79806
child 1940 6d53f81d3b64
destination: add a ui argument to 'setupdest' This is a gratuitous change for consistency.
hgext3rd/topic/__init__.py
hgext3rd/topic/destination.py
--- a/hgext3rd/topic/__init__.py	Wed Mar 30 03:12:43 2016 -0700
+++ b/hgext3rd/topic/__init__.py	Wed Mar 30 03:15:47 2016 -0700
@@ -91,7 +91,7 @@
     return []
 
 def uisetup(ui):
-    destination.setupdest()
+    destination.setupdest(ui)
 
 @contextlib.contextmanager
 def usetopicmap(repo):
--- a/hgext3rd/topic/destination.py	Wed Mar 30 03:12:43 2016 -0700
+++ b/hgext3rd/topic/destination.py	Wed Mar 30 03:15:47 2016 -0700
@@ -86,7 +86,7 @@
         subquery = 'max(%s)' % subquery
     return repo.revs(subquery, branch, branch, branch)
 
-def setupdest():
+def setupdest(ui):
     if util.safehasattr(destutil, '_destmergebranch'):
         extensions.wrapfunction(destutil, '_destmergebranch', _destmergebranch)
     rebase = extensions.find('rebase')