Merge with stable
authorChristian Ebert <blacktrash@gmx.net>
Wed, 18 Mar 2009 13:37:10 +0100
changeset 526 c5f89f0be6ef
parent 524 8117a011d1bd (current diff)
parent 525 6028e8046c14 (diff)
child 528 bde29dbc3fc2
Merge with stable
--- a/hgkw/keyword.py	Thu Mar 05 06:47:41 2009 +0100
+++ b/hgkw/keyword.py	Wed Mar 18 13:37:10 2009 +0100
@@ -427,10 +427,14 @@
     keyword substitutions.
     Monkeypatches patch and webcommands.'''
 
-    if (not hasattr(repo, 'dirstate') or not kwtools['inc']
-        or kwtools['hgcmd'] in nokwcommands.split()
-        or '.hg' in util.splitpath(repo.root)):
-        return
+    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
 
     kwtools['templater'] = kwt = kwtemplater(ui, repo)