Mercurial > hgsubversion
changeset 1506:332e803044e5
commands: fix registrar check
'util' in hgsubversion is a different type from hgutil, which is the one from
core hg. This was hidden by the fallback logic, but I'm not sure why it didn't
cause errors in the tests. Maybe I ran the original tests against an older hg.
This time I've ensured the tests pass against the latest version of hg.
author | Durham Goode <durham@fb.com> |
---|---|
date | Tue, 23 May 2017 11:08:42 -0700 |
parents | 6f2c7b5940f6 |
children | debba0fa822e |
files | hgsubversion/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/__init__.py +++ b/hgsubversion/__init__.py @@ -225,7 +225,7 @@ try: templatekeyword = registrar.templatekeyword() loadkeyword = lambda registrarobj: None # no-op - if util.safehasattr(registrar, 'command'): + if hgutil.safehasattr(registrar, 'command'): cmdtable = {} command = registrar.command(cmdtable) @command('svn', svnopts, svnusage)