destination: rename 'setupdest' to 'modsetup'
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 30 Mar 2016 03:20:16 -0700
changeset 1941 7eb737b7a902
parent 1940 6d53f81d3b64
child 1942 8815e799d865
destination: rename 'setupdest' to 'modsetup' the topic.revset module use 'modsetup' as a name for its setup function. It looks like a good name, lets unify names toward that.
hgext3rd/topic/__init__.py
hgext3rd/topic/destination.py
--- a/hgext3rd/topic/__init__.py	Wed Mar 30 03:16:19 2016 -0700
+++ b/hgext3rd/topic/__init__.py	Wed Mar 30 03:20:16 2016 -0700
@@ -91,7 +91,7 @@
     return []
 
 def uisetup(ui):
-    destination.setupdest(ui)
+    destination.modsetup(ui)
 
 @contextlib.contextmanager
 def usetopicmap(repo):
--- a/hgext3rd/topic/destination.py	Wed Mar 30 03:16:19 2016 -0700
+++ b/hgext3rd/topic/destination.py	Wed Mar 30 03:20:16 2016 -0700
@@ -86,7 +86,7 @@
         subquery = 'max(%s)' % subquery
     return repo.revs(subquery, branch, branch, branch)
 
-def setupdest(ui):
+def modsetup(ui):
     """run a uisetup time to install all destinations wrapping"""
     if util.safehasattr(destutil, '_destmergebranch'):
         extensions.wrapfunction(destutil, '_destmergebranch', _destmergebranch)