add templatekeyword in a proper location
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 25 May 2011 02:27:09 +0200
changeset 17 6aa349f47e7c
parent 16 fd9f50406cb8
child 18 9ffe946febc0
add templatekeyword in a proper location
states.py
--- a/states.py	Wed May 25 02:26:38 2011 +0200
+++ b/states.py	Wed May 25 02:27:09 2011 +0200
@@ -124,8 +124,6 @@
     }
 
 
-templatekw.keywords['state'] = showstate
-
 
 
 
@@ -156,6 +154,8 @@
     wireproto.wirerepository._reducehead = _reducehead
     wireproto.commands['heads'] = (heads, '')
 
+    templatekw.keywords['state'] = showstate
+
 def extsetup(ui):
     for state in STATES:
         if state.trackheads: