Mercurial > hg
comparison hgext/largefiles/uisetup.py @ 15169:aa262fff87ac
largefile: fix up hasattr usage
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 29 Sep 2011 16:48:48 -0500 |
parents | cfccd3bee7b3 |
children | c1a4a3220711 |
comparison
equal
deleted
inserted
replaced
15168:cfccd3bee7b3 | 15169:aa262fff87ac |
---|---|
67 extensions.wrapfunction(hg, '_update', overrides.hg_update) | 67 extensions.wrapfunction(hg, '_update', overrides.hg_update) |
68 extensions.wrapfunction(hg, 'clean', overrides.hg_clean) | 68 extensions.wrapfunction(hg, 'clean', overrides.hg_clean) |
69 extensions.wrapfunction(hg, 'merge', overrides.hg_merge) | 69 extensions.wrapfunction(hg, 'merge', overrides.hg_merge) |
70 | 70 |
71 extensions.wrapfunction(archival, 'archive', overrides.override_archive) | 71 extensions.wrapfunction(archival, 'archive', overrides.override_archive) |
72 if hasattr(cmdutil, 'bailifchanged'): | 72 if util.safehasattr(cmdutil, 'bailifchanged'): |
73 extensions.wrapfunction(cmdutil, 'bailifchanged', | 73 extensions.wrapfunction(cmdutil, 'bailifchanged', |
74 overrides.override_bailifchanged) | 74 overrides.override_bailifchanged) |
75 else: | 75 else: |
76 extensions.wrapfunction(cmdutil, 'bail_if_changed', | 76 extensions.wrapfunction(cmdutil, 'bail_if_changed', |
77 overrides.override_bailifchanged) | 77 overrides.override_bailifchanged) |