Mercurial > hg
changeset 7534:5aca12729a0d
keyword: simplify repo.local and bundle check (as in 2f4a399a8787)
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Tue, 16 Dec 2008 09:58:41 +0100 |
parents | 4acf5f24912b |
children | 9a962209dc28 |
files | hgext/keyword.py |
diffstat | 1 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/keyword.py Mon Dec 15 12:03:28 2008 -0800 +++ b/hgext/keyword.py Tue Dec 16 09:58:41 2008 +0100 @@ -425,14 +425,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)