comparison hgext/mq.py @ 5147:c80af96943aa

refactor options from cmdtable - add extracommitopts for user and date - factor stuff
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 08 Aug 2007 12:27:20 +0200
parents 47a8ea1eb2c3
children 06154aff2b1a
comparison
equal deleted inserted replaced
5146:7106f4899aa0 5147:c80af96943aa
2129 (clone, 2129 (clone,
2130 [('', 'pull', None, _('use pull protocol to copy metadata')), 2130 [('', 'pull', None, _('use pull protocol to copy metadata')),
2131 ('U', 'noupdate', None, _('do not update the new working directories')), 2131 ('U', 'noupdate', None, _('do not update the new working directories')),
2132 ('', 'uncompressed', None, 2132 ('', 'uncompressed', None,
2133 _('use uncompressed transfer (fast over LAN)')), 2133 _('use uncompressed transfer (fast over LAN)')),
2134 ('e', 'ssh', '', _('specify ssh command to use')),
2135 ('p', 'patches', '', _('location of source patch repo')), 2134 ('p', 'patches', '', _('location of source patch repo')),
2136 ('', 'remotecmd', '', 2135 ] + commands.remoteopts,
2137 _('specify hg command to run on the remote side'))],
2138 _('hg qclone [OPTION]... SOURCE [DEST]')), 2136 _('hg qclone [OPTION]... SOURCE [DEST]')),
2139 "qcommit|qci": 2137 "qcommit|qci":
2140 (commit, 2138 (commit,
2141 commands.table["^commit|ci"][1], 2139 commands.table["^commit|ci"][1],
2142 _('hg qcommit [OPTION]... [FILE]...')), 2140 _('hg qcommit [OPTION]... [FILE]...')),
2143 "^qdiff": 2141 "^qdiff":
2144 (diff, 2142 (diff,
2145 [('g', 'git', None, _('use git extended diff format')), 2143 [('g', 'git', None, _('use git extended diff format')),
2146 ('I', 'include', [], _('include names matching the given patterns')), 2144 ] + commands.walkopts,
2147 ('X', 'exclude', [], _('exclude names matching the given patterns'))],
2148 _('hg qdiff [-I] [-X] [-g] [FILE]...')), 2145 _('hg qdiff [-I] [-X] [-g] [FILE]...')),
2149 "qdelete|qremove|qrm": 2146 "qdelete|qremove|qrm":
2150 (delete, 2147 (delete,
2151 [('k', 'keep', None, _('keep patch file')), 2148 [('k', 'keep', None, _('keep patch file')),
2152 ('r', 'rev', [], _('stop managing a revision'))], 2149 ('r', 'rev', [], _('stop managing a revision'))],
2182 "qnew": 2179 "qnew":
2183 (new, 2180 (new,
2184 [('e', 'edit', None, _('edit commit message')), 2181 [('e', 'edit', None, _('edit commit message')),
2185 ('f', 'force', None, _('import uncommitted changes into patch')), 2182 ('f', 'force', None, _('import uncommitted changes into patch')),
2186 ('g', 'git', None, _('use git extended diff format')), 2183 ('g', 'git', None, _('use git extended diff format')),
2187 ('I', 'include', [], _('include names matching the given patterns')), 2184 ] + commands.walkopts + commands.commitopts,
2188 ('X', 'exclude', [], _('exclude names matching the given patterns')),
2189 ] + commands.commitopts,
2190 _('hg qnew [-e] [-m TEXT] [-l FILE] [-f] PATCH [FILE]...')), 2185 _('hg qnew [-e] [-m TEXT] [-l FILE] [-f] PATCH [FILE]...')),
2191 "qnext": (next, [] + seriesopts, _('hg qnext [-s]')), 2186 "qnext": (next, [] + seriesopts, _('hg qnext [-s]')),
2192 "qprev": (prev, [] + seriesopts, _('hg qprev [-s]')), 2187 "qprev": (prev, [] + seriesopts, _('hg qprev [-s]')),
2193 "^qpop": 2188 "^qpop":
2194 (pop, 2189 (pop,
2207 "^qrefresh": 2202 "^qrefresh":
2208 (refresh, 2203 (refresh,
2209 [('e', 'edit', None, _('edit commit message')), 2204 [('e', 'edit', None, _('edit commit message')),
2210 ('g', 'git', None, _('use git extended diff format')), 2205 ('g', 'git', None, _('use git extended diff format')),
2211 ('s', 'short', None, _('refresh only files already in the patch')), 2206 ('s', 'short', None, _('refresh only files already in the patch')),
2212 ('I', 'include', [], _('include names matching the given patterns')), 2207 ] + commands.walkopts + commands.commitopts,
2213 ('X', 'exclude', [], _('exclude names matching the given patterns')),
2214 ] + commands.commitopts,
2215 _('hg qrefresh [-I] [-X] [-e] [-m TEXT] [-l FILE] [-s] [FILE]...')), 2208 _('hg qrefresh [-I] [-X] [-e] [-m TEXT] [-l FILE] [-s] [FILE]...')),
2216 'qrename|qmv': 2209 'qrename|qmv':
2217 (rename, [], _('hg qrename PATCH1 [PATCH2]')), 2210 (rename, [], _('hg qrename PATCH1 [PATCH2]')),
2218 "qrestore": 2211 "qrestore":
2219 (restore, 2212 (restore,