# HG changeset patch # User Daniel Tang # Date 1240464818 14400 # Node ID e0f9fa0acc03331a3ca890793b8f273fcafd5544 # Parent 25d843281127dbd6335527b35788770c4886d112 Fix the nourl check to use the command name, instead of the function diff --git a/__init__.py b/__init__.py --- a/__init__.py +++ b/__init__.py @@ -93,7 +93,7 @@ def svn(ui, repo, subcommand, *args, **o path = os.path.dirname(repo.path) try: commandfunc = svncommands.table[subcommand] - if commandfunc not in svncommands.nourl: + if subcommand not in svncommands.nourl: opts['svn_url'] = open(os.path.join(repo.path, 'svn', 'url')).read() return commandfunc(ui, args=args, hg_repo_path=path, repo=repo, **opts) except core.SubversionException, e: