changeset 17:6aa349f47e7c

add templatekeyword in a proper location
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 25 May 2011 02:27:09 +0200
parents fd9f50406cb8
children 9ffe946febc0
files states.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: