Mercurial > public > mercurial-scm > hg
diff hgext/graphlog.py @ 21782:404eca1ce4f9
graphlog: define inferrepo in command decorator
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 04 May 2014 22:28:46 -0700 |
parents | 6ed9141151bf |
children | 8d43c6bb38c0 |
line wrap: on
line diff
--- 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"