[PATCH 30 of 35] graphlog: define inferrepo in command decorator
Gregory Szorc
gregory.szorc at gmail.com
Mon May 5 00:51:35 CDT 2014
# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1399267726 25200
# Sun May 04 22:28:46 2014 -0700
# Branch stable
# Node ID 9a7249952af9dbe31fc5b922b7d275da07b4fe5f
# Parent 75277696df23760fdcc7fd94c0d192e920a2c73f
graphlog: define inferrepo in command decorator
diff --git a/hgext/graphlog.py b/hgext/graphlog.py
--- a/hgext/graphlog.py
+++ b/hgext/graphlog.py
@@ -38,21 +38,20 @@ testedwith = 'internal'
('', 'only-branch', [],
_('show only changesets within the given named branch (DEPRECATED)'),
_('BRANCH')),
('b', 'branch', [],
_('show changesets within the given named branch'), _('BRANCH')),
('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
Print a revision history alongside a revision graph drawn with
ASCII characters.
Nodes printed as an @ character are parents of the working
directory.
"""
return cmdutil.graphlog(ui, repo, *pats, **opts)
-
-commands.inferrepo += " glog"
More information about the Mercurial-devel
mailing list