graphlog: do not swallow all TypeError exceptions (fix fe7058294ec5)

This commit is contained in:
Markus F.X.J. Oberhumer 2011-03-16 23:54:55 +01:00
parent c2ca636151
commit 17565c031b

View File

@ -324,6 +324,7 @@ def _wrapcmd(ui, cmd, table, wrapfn):
except TypeError, e:
if len(args) > wrapfn.func_code.co_argcount:
raise util.Abort(_('--graph option allows at most one file'))
raise
return orig(*args, **kwargs)
entry = extensions.wrapcommand(table, cmd, graph)
entry[1].append(('G', 'graph', None, _("show the revision DAG")))