hgkw/keyword.py
branchkwmap-templates
changeset 137 bfea48fbcb88
parent 136 5e9d6c57d679
child 138 bf8622c50309
--- a/hgkw/keyword.py	Fri Feb 09 16:16:22 2007 +0100
+++ b/hgkw/keyword.py	Fri Feb 09 18:43:15 2007 +0100
@@ -185,6 +185,7 @@
                     text=text, user=user, date=date,
                     match=match, force=force, lock=lock, wlock=wlock,
                     force_editor=force_editor, p1=p1, p2=p2, extra=extra)
+
             if node is None:
                 return node
 
@@ -218,7 +219,7 @@
             self._repo = repo
             self._path = path
             # only init kwtemplater if needed
-            if not isinstance(repo, int) and repo.kwfmatcher(path):
+            if hasattr(repo, 'kwfmatcher') and repo.kwfmatcher(path):
                 self.kwt = kwtemplater(repo.ui, repo)
             else:
                 self.kwt = None