(stable) merge with default stable
authorChristian Ebert <blacktrash@gmx.net>
Wed, 17 Dec 2008 14:55:20 +0100
branchstable
changeset 518 55b462bc9343
parent 515 9ea5ac3258b6 (current diff)
parent 517 3fef0be9f550 (diff)
child 520 e2fc27c86733
(stable) merge with default
--- a/hgkw/keyword.py	Sun Sep 28 20:40:38 2008 +0200
+++ b/hgkw/keyword.py	Wed Dec 17 14:55:20 2008 +0100
@@ -427,14 +427,10 @@
     keyword substitutions.
     Monkeypatches patch and webcommands.'''
 
-    try:
-        if (not repo.local() or not kwtools['inc']
-            or kwtools['hgcmd'] in nokwcommands.split()
-            or '.hg' in util.splitpath(repo.root)
-            or repo._url.startswith('bundle:')):
-            return
-    except AttributeError:
-        pass
+    if (not hasattr(repo, 'dirstate') or not kwtools['inc']
+        or kwtools['hgcmd'] in nokwcommands.split()
+        or '.hg' in util.splitpath(repo.root)):
+        return
 
     kwtools['templater'] = kwt = kwtemplater(ui, repo)