revset: add a ui argument to 'modsetup'
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 30 Mar 2016 03:22:50 -0700
changeset 1943 cd56f4d8b5a3
parent 1942 8815e799d865
child 1944 daad8249d5cf
revset: add a ui argument to 'modsetup' This is a gratuitous change for consistency with the function that use it.
hgext3rd/topic/__init__.py
hgext3rd/topic/revset.py
--- a/hgext3rd/topic/__init__.py	Wed Mar 30 03:21:44 2016 -0700
+++ b/hgext3rd/topic/__init__.py	Wed Mar 30 03:22:50 2016 -0700
@@ -92,7 +92,7 @@
 
 def uisetup(ui):
     destination.modsetup(ui)
-    topicrevset.modsetup()
+    topicrevset.modsetup(ui)
 
 @contextlib.contextmanager
 def usetopicmap(repo):
--- a/hgext3rd/topic/revset.py	Wed Mar 30 03:21:44 2016 -0700
+++ b/hgext3rd/topic/revset.py	Wed Mar 30 03:22:50 2016 -0700
@@ -69,7 +69,7 @@
     return revset.baseset(stack.getstack(repo, topic)) & subset
 
 
-def modsetup():
+def modsetup(ui):
     revset.symbols.update({'topic': topicset})
     revset.symbols.update({'ngtip': ngtipset})
     revset.symbols.update({'stack': stackset})