# HG changeset patch # User Gregory Szorc # Date 1399267726 25200 # Node ID 404eca1ce4f91aa6f7ff026272c6a85cb268996f # Parent f0c3b95af47f3a6d647eaab2272a1aea5902f03c graphlog: define inferrepo in command decorator diff -r f0c3b95af47f -r 404eca1ce4f9 hgext/graphlog.py --- a/hgext/graphlog.py Sun May 04 22:29:27 2014 -0700 +++ b/hgext/graphlog.py Sun May 04 22:28:46 2014 -0700 @@ -43,7 +43,8 @@ ('P', 'prune', [], _('do not display revision or any of its ancestors'), _('REV')), ] + commands.logopts + commands.walkopts, - _('[OPTION]... [FILE]')) + _('[OPTION]... [FILE]'), + inferrepo=True) def graphlog(ui, repo, *pats, **opts): """show revision history alongside an ASCII revision graph @@ -54,5 +55,3 @@ directory. """ return cmdutil.graphlog(ui, repo, *pats, **opts) - -commands.inferrepo += " glog"