hgkw/keyword.py
changeset 384 482c91f8c230
parent 383 af4c062c4b41
child 385 e93c63004ec2
--- a/hgkw/keyword.py	Wed Feb 06 23:32:21 2008 +0100
+++ b/hgkw/keyword.py	Thu Feb 07 01:49:17 2008 +0100
@@ -412,8 +412,12 @@
     This is done for local repos only, and only if there are
     files configured at all for keyword substitution.'''
 
-    if not repo.local() or '.hg' in repo.root.split('/'):
-        return
+    try:
+        if (not repo.local() or '.hg' in repo.root.split('/')
+            or repo._url.startswith('bundle:')):
+            return
+    except AttributeError:
+        pass
 
     hgcmd, func, args, opts, cmdopts = dispatch._parse(ui, sys.argv[1:])
     if hgcmd in nokwcommands.split():