site

(Pierre-Yves David)
2011-05-25: reorder extsetup

reorder extsetup

diff --git a/states.py b/states.py
--- a/states.py
+++ b/states.py
@@ -107,10 +107,6 @@ def showstate(ctx, **args):
 #############################
 
 
-def extsetup(ui):
-    for state in STATES:
-        if state.trackheads:
-            revset.symbols[state.headssymbol] = state._revsetheads
 
 # New commands
 #############################
@@ -163,6 +159,11 @@ def uisetup(ui):
     wireproto.wirerepository._reducehead = _reducehead
     wireproto.commands['heads'] = (heads, '')
 
+def extsetup(ui):
+    for state in STATES:
+        if state.trackheads:
+            revset.symbols[state.headssymbol] = state._revsetheads
+
 def reposetup(ui, repo):
 
     if not repo.local():