# HG changeset patch # User Durham Goode # Date 1495562922 25200 # Node ID 332e803044e543238e34fb9a41315cd5c63ff08d # Parent 6f2c7b5940f6eb038e0256b9210e9876fffdf151 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. diff --git a/hgsubversion/__init__.py b/hgsubversion/__init__.py --- 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)