Mercurial > public > mercurial-scm > hg
diff hgext/fetch.py @ 32375: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 | 9c242e9fca65 |
line wrap: on
line diff
--- a/hgext/fetch.py Sat Aug 13 12:29:53 2016 +0900 +++ b/hgext/fetch.py Sun May 14 16:19:47 2017 +0900 @@ -15,7 +15,6 @@ ) from mercurial import ( cmdutil, - commands, error, exchange, hg, @@ -39,7 +38,7 @@ ('e', 'edit', None, _('invoke editor on commit messages')), ('', 'force-editor', None, _('edit commit message (DEPRECATED)')), ('', 'switch-parent', None, _('switch parents when merging')), - ] + commands.commitopts + commands.commitopts2 + commands.remoteopts, + ] + cmdutil.commitopts + cmdutil.commitopts2 + cmdutil.remoteopts, _('hg fetch [SOURCE]')) def fetch(ui, repo, source='default', **opts): '''pull changes from a remote repository, merge new changes if needed.