Comments
Patch
@@ -243,17 +243,18 @@ def dodiff(ui, repo, diffcmd, diffopts,
@command('extdiff',
[('p', 'program', '',
_('comparison program to run'), _('CMD')),
('o', 'option', [],
_('pass option to comparison program'), _('OPT')),
('r', 'rev', [], _('revision'), _('REV')),
('c', 'change', '', _('change made by revision'), _('REV')),
] + commands.walkopts,
- _('hg extdiff [OPT]... [FILE]...'))
+ _('hg extdiff [OPT]... [FILE]...'),
+ inferrepo=True)
def extdiff(ui, repo, *pats, **opts):
'''use external program to diff repository (or selected files)
Show differences between revisions for the specified files, using
an external program. The default program used is diff, with
default options "-Npru".
To select a different program, use the -p/--program option. The
@@ -320,10 +321,8 @@ use %(path)s to diff repository (or sele
# fail when the docstring contains non-ASCII characters.
# Decoding the string to a Unicode string here (using the
# right encoding) prevents that.
mydiff.__doc__ = doc.decode(encoding.encoding)
return mydiff
cmdtable[cmd] = (save(cmd, path, diffopts),
cmdtable['extdiff'][1][1:],
_('hg %s [OPTION]... [FILE]...') % cmd)
-
-commands.inferrepo += " extdiff"