changeset 1110:99b3b443b94b

init: remove pre-1.5 templatekw code
author Sean Farley <sean.michael.farley@gmail.com>
date Fri, 06 Sep 2013 19:11:40 -0500
parents 48935ea2090f
children 815e5cbc7ea7
files hgsubversion/__init__.py
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/__init__.py
+++ b/hgsubversion/__init__.py
@@ -33,12 +33,7 @@ demandimport.ignore.extend([
     'svn.ra',
     ])
 
-try:
-    from mercurial import templatekw
-    # force demandimport to load templatekw
-    templatekw.keywords
-except ImportError:
-    templatekw = None
+from mercurial import templatekw
 
 try:
     from mercurial import revset
@@ -168,8 +163,7 @@ def extsetup(ui):
     else:
         help.helptable = help.helptable + entries
 
-    if templatekw:
-        templatekw.keywords.update(util.templatekeywords)
+    templatekw.keywords.update(util.templatekeywords)
 
     if revset:
         revset.symbols.update(util.revsets)