Mercurial > public > mercurial-scm > hg-stable
diff hgext/keyword.py @ 7853:af062a9fea9b
bundlerepo: reintroduce dirstate
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 17 Mar 2009 13:43:11 -0500 |
parents | fece056bf240 |
children | b83a11536fc6 |
line wrap: on
line diff
--- a/hgext/keyword.py Fri Mar 13 21:14:57 2009 +0100 +++ b/hgext/keyword.py Tue Mar 17 13:43:11 2009 -0500 @@ -425,10 +425,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)