Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/lfcommands.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 | 08346a8fa65f |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Sat Aug 13 12:29:53 2016 +0900 +++ b/hgext/largefiles/lfcommands.py Sun May 14 16:19:47 2017 +0900 @@ -18,7 +18,6 @@ from mercurial import ( cmdutil, - commands, context, error, hg, @@ -542,7 +541,7 @@ @command('lfpull', [('r', 'rev', [], _('pull largefiles for these revisions')) - ] + commands.remoteopts, + ] + cmdutil.remoteopts, _('-r REV... [-e CMD] [--remotecmd CMD] [SOURCE]')) def lfpull(ui, repo, source="default", **opts): """pull largefiles for the specified revisions from the specified source