Mercurial > public > mercurial-scm > hg-stable
diff hgext/extdiff.py @ 32414:04baab18d60a
commands: move templates of common command options to cmdutil (API)
The goal is to get rid of the debugcommands -> commands dependency.
Since globalopts is the property of the commands, it's kept in the commands
module.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 14 May 2017 16:19:47 +0900 |
parents | 46ba2cdda476 |
children | 9fd9f91b0c43 |
line wrap: on
line diff
--- a/hgext/extdiff.py Sat Aug 13 12:29:53 2016 +0900 +++ b/hgext/extdiff.py Sun May 14 16:19:47 2017 +0900 @@ -74,7 +74,6 @@ from mercurial import ( archival, cmdutil, - commands, error, filemerge, pycompat, @@ -301,7 +300,7 @@ ('r', 'rev', [], _('revision'), _('REV')), ('c', 'change', '', _('change made by revision'), _('REV')), ('', 'patch', None, _('compare patches for two revisions')) - ] + commands.walkopts + commands.subrepoopts + ] + cmdutil.walkopts + cmdutil.subrepoopts @command('extdiff', [('p', 'program', '', _('comparison program to run'), _('CMD')),