diff states.py @ 14:f5e1055a3f68

reorder extsetup
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 25 May 2011 02:14:36 +0200
parents e95e8cf7988f
children a38b3d0a1562
line wrap: on
line diff
--- a/states.py	Wed May 25 02:13:02 2011 +0200
+++ b/states.py	Wed May 25 02:14:36 2011 +0200
@@ -107,10 +107,6 @@
 #############################
 
 
-def extsetup(ui):
-    for state in STATES:
-        if state.trackheads:
-            revset.symbols[state.headssymbol] = state._revsetheads
 
 # New commands
 #############################
@@ -163,6 +159,11 @@
     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():