# HG changeset patch # User Matt Mackall # Date 1237315391 18000 # Node ID 6028e8046c14166904c2e30c0d9c3056560d7d52 # Parent 062ce3b9c962771879cd8301c43d59bf81fb0965 bundlerepo: reintroduce dirstate [ original upstream description ] diff -r 062ce3b9c962 -r 6028e8046c14 hgkw/keyword.py --- a/hgkw/keyword.py Sat Feb 14 22:40:39 2009 +0100 +++ b/hgkw/keyword.py Tue Mar 17 13:43:11 2009 -0500 @@ -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)