add templatekeyword in a proper location
diff --git a/states.py b/states.py
--- a/states.py
+++ b/states.py
@@ -124,8 +124,6 @@ cmdtable = {
}
-templatekw.keywords['state'] = showstate
-
@@ -156,6 +154,8 @@ def uisetup(ui):
wireproto.wirerepository._reducehead = _reducehead
wireproto.commands['heads'] = (heads, '')
+ templatekw.keywords['state'] = showstate
+
def extsetup(ui):
for state in STATES:
if state.trackheads: