[PATCH] Add --git option to log, incoming, outgoing and tip (updated)
Jim Correia
jim.correia at pobox.com
Sat Jan 3 09:11:23 CST 2009
The log, incoming, outgoing and tip subcommands don't have a --git
option.
(I'm aware of the global option, but one problem with turning it one
globally is that there isn't a convenient way to turn it off per
invocation when necessary.)
Below is a patch which adds a --git option to log, incoming and
outgoing. I didn't add the typical short for, -g, since this conflicts
with the graphlog extension.
- Jim
# HG changeset patch
# User Jim Correia <jim.correia at pobox.com>
# Date 1230910489 18000
# Node ID e962f004e0ff59e1f71871bf34ca253f778919fa
# Parent f03562400824201da94fa939a645646c07cbfef7
Add a --git option to log, incoming, history and tip.
There is no short form (-g) since it would conflict with -g from the
graphlog extension.
diff -r f03562400824 -r e962f004e0ff mercurial/commands.py
--- a/mercurial/commands.py Wed Dec 31 17:38:35 2008 -0600
+++ b/mercurial/commands.py Fri Jan 02 10:34:49 2009 -0500
@@ -3005,6 +3005,7 @@
logopts = [
('p', 'patch', None, _('show patch')),
+ ('', 'git', None, _('use git extended diff format')),
('l', 'limit', '', _('limit number of changes displayed')),
('M', 'no-merges', None, _('do not show merges')),
] + templateopts
@@ -3390,6 +3391,7 @@
"tip":
(tip,
[('p', 'patch', None, _('show patch')),
+ ('', 'git', None, _('use git extended diff format')),
] + templateopts,
_('[-p]')),
"unbundle":
More information about the Mercurial-devel
mailing list