comparison hgext/graphlog.py @ 14416:253bda94372e

graphlog: remove unused arg from _wrapcmd
author Idan Kamara <idankk86@gmail.com>
date Mon, 23 May 2011 23:22:47 +0300
parents b33f3e35efb0
children eb87fbc6d702
comparison
equal deleted inserted replaced
14415:c238b12a1ed4 14416:253bda94372e
381 381
382 hg._incoming(display, subreporecurse, ui, repo, source, opts, buffered=True) 382 hg._incoming(display, subreporecurse, ui, repo, source, opts, buffered=True)
383 383
384 def uisetup(ui): 384 def uisetup(ui):
385 '''Initialize the extension.''' 385 '''Initialize the extension.'''
386 _wrapcmd(ui, 'log', commands.table, graphlog) 386 _wrapcmd('log', commands.table, graphlog)
387 _wrapcmd(ui, 'incoming', commands.table, gincoming) 387 _wrapcmd('incoming', commands.table, gincoming)
388 _wrapcmd(ui, 'outgoing', commands.table, goutgoing) 388 _wrapcmd('outgoing', commands.table, goutgoing)
389 389
390 def _wrapcmd(ui, cmd, table, wrapfn): 390 def _wrapcmd(cmd, table, wrapfn):
391 '''wrap the command''' 391 '''wrap the command'''
392 def graph(orig, *args, **kwargs): 392 def graph(orig, *args, **kwargs):
393 if kwargs['graph']: 393 if kwargs['graph']:
394 return wrapfn(*args, **kwargs) 394 return wrapfn(*args, **kwargs)
395 return orig(*args, **kwargs) 395 return orig(*args, **kwargs)