diff __init__.py @ 273:e0f9fa0acc03

Fix the nourl check to use the command name, instead of the function
author Daniel Tang <dytang@cs.purdue.edu>
date Thu, 23 Apr 2009 01:33:38 -0400
parents 112d57bb736e
children ba8e91a7c077
line wrap: on
line diff
--- 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: