changeset 1943:cd56f4d8b5a3

revset: add a ui argument to 'modsetup' This is a gratuitous change for consistency with the function that use it.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 30 Mar 2016 03:22:50 -0700
parents 8815e799d865
children daad8249d5cf
files hgext3rd/topic/__init__.py hgext3rd/topic/revset.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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})