revset: add a ui argument to 'modsetup'
This is a gratuitous change for consistency with the function that use it.
--- 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})