Show More
@@ -463,7 +463,8 b' def help_(ui, cmd=None, with_version=Fal' | |||||
463 | opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt, |
|
463 | opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt, | |
464 | longopt and " --%s" % longopt), |
|
464 | longopt and " --%s" % longopt), | |
465 | "%s%s" % (desc, |
|
465 | "%s%s" % (desc, | |
466 |
default |
|
466 | default | |
|
467 | and _(" (default: %s)") % default | |||
467 | or ""))) |
|
468 | or ""))) | |
468 |
|
469 | |||
469 | if opt_output: |
|
470 | if opt_output: | |
@@ -730,7 +731,8 b' def clone(ui, source, dest=None, **opts)' | |||||
730 | revs = None |
|
731 | revs = None | |
731 | if opts['rev']: |
|
732 | if opts['rev']: | |
732 | if not other.local(): |
|
733 | if not other.local(): | |
733 |
|
|
734 | error = "clone -r not supported yet for remote repositories." | |
|
735 | raise util.Abort(error) | |||
734 | else: |
|
736 | else: | |
735 | revs = [other.lookup(rev) for rev in opts['rev']] |
|
737 | revs = [other.lookup(rev) for rev in opts['rev']] | |
736 | repo = hg.repository(ui, dest, create=1) |
|
738 | repo = hg.repository(ui, dest, create=1) | |
@@ -985,7 +987,8 b' def debugcheckstate(ui, repo):' | |||||
985 | ui.warn(_("%s in manifest1, but listed as state %s") % (f, state)) |
|
987 | ui.warn(_("%s in manifest1, but listed as state %s") % (f, state)) | |
986 | errors += 1 |
|
988 | errors += 1 | |
987 | if errors: |
|
989 | if errors: | |
988 |
|
|
990 | error = _(".hg/dirstate inconsistent with current parent's manifest") | |
|
991 | raise util.Abort(error) | |||
989 |
|
992 | |||
990 | def debugconfig(ui): |
|
993 | def debugconfig(ui): | |
991 | """show combined config settings from all hgrc files""" |
|
994 | """show combined config settings from all hgrc files""" | |
@@ -1176,7 +1179,8 b' def export(ui, repo, *changesets, **opts' | |||||
1176 | revs = list(revrange(ui, repo, changesets)) |
|
1179 | revs = list(revrange(ui, repo, changesets)) | |
1177 | total = len(revs) |
|
1180 | total = len(revs) | |
1178 | revwidth = max(map(len, revs)) |
|
1181 | revwidth = max(map(len, revs)) | |
1179 |
|
|
1182 | msg = len(revs) > 1 and _("Exporting patches:\n") or _("Exporting patch:\n") | |
|
1183 | ui.note(msg) | |||
1180 | for cset in revs: |
|
1184 | for cset in revs: | |
1181 | seqno += 1 |
|
1185 | seqno += 1 | |
1182 | doexport(ui, repo, cset, seqno, total, revwidth, opts) |
|
1186 | doexport(ui, repo, cset, seqno, total, revwidth, opts) | |
@@ -2227,8 +2231,10 b' table = {' | |||||
2227 | [('U', 'noupdate', None, _('do not update the new working directory')), |
|
2231 | [('U', 'noupdate', None, _('do not update the new working directory')), | |
2228 | ('e', 'ssh', "", _('specify ssh command to use')), |
|
2232 | ('e', 'ssh', "", _('specify ssh command to use')), | |
2229 | ('', 'pull', None, _('use pull protocol to copy metadata')), |
|
2233 | ('', 'pull', None, _('use pull protocol to copy metadata')), | |
2230 | ('r', 'rev', [], _('a changeset you would like to have after cloning')), |
|
2234 | ('r', 'rev', [], | |
2231 | ('', 'remotecmd', "", _('specify hg command to run on the remote side'))], |
|
2235 | _('a changeset you would like to have after cloning')), | |
|
2236 | ('', 'remotecmd', "", | |||
|
2237 | _('specify hg command to run on the remote side'))], | |||
2232 | _('hg clone [OPTION]... SOURCE [DEST]')), |
|
2238 | _('hg clone [OPTION]... SOURCE [DEST]')), | |
2233 | "^commit|ci": |
|
2239 | "^commit|ci": | |
2234 | (commit, |
|
2240 | (commit, | |
@@ -2241,10 +2247,14 b' table = {' | |||||
2241 | ('u', 'user', "", _('record user as commiter'))], |
|
2247 | ('u', 'user', "", _('record user as commiter'))], | |
2242 | _('hg commit [OPTION]... [FILE]...')), |
|
2248 | _('hg commit [OPTION]... [FILE]...')), | |
2243 | "copy|cp": (copy, |
|
2249 | "copy|cp": (copy, | |
2244 | [('I', 'include', [], _('include names matching the given patterns')), |
|
2250 | [('I', 'include', [], | |
2245 |
|
|
2251 | _('include names matching the given patterns')), | |
2246 | ('A', 'after', None, _('record a copy that has already occurred')), |
|
2252 | ('X', 'exclude', [], | |
2247 | ('f', 'force', None, _('forcibly copy over an existing managed file'))], |
|
2253 | _('exclude names matching the given patterns')), | |
|
2254 | ('A', 'after', None, | |||
|
2255 | _('record a copy that has already occurred')), | |||
|
2256 | ('f', 'force', None, | |||
|
2257 | _('forcibly copy over an existing managed file'))], | |||
2248 | _('hg copy [OPTION]... [SOURCE]... DEST')), |
|
2258 | _('hg copy [OPTION]... [SOURCE]... DEST')), | |
2249 | "debugancestor": (debugancestor, [], _('debugancestor INDEX REV1 REV2')), |
|
2259 | "debugancestor": (debugancestor, [], _('debugancestor INDEX REV1 REV2')), | |
2250 | "debugcheckstate": (debugcheckstate, [], _('debugcheckstate')), |
|
2260 | "debugcheckstate": (debugcheckstate, [], _('debugcheckstate')), | |
@@ -2285,7 +2295,8 b' table = {' | |||||
2285 | ('X', 'exclude', [], _('exclude names matching the given patterns')), |
|
2295 | ('X', 'exclude', [], _('exclude names matching the given patterns')), | |
2286 | ('', 'all', None, _('print all revisions that match')), |
|
2296 | ('', 'all', None, _('print all revisions that match')), | |
2287 | ('i', 'ignore-case', None, _('ignore case when matching')), |
|
2297 | ('i', 'ignore-case', None, _('ignore case when matching')), | |
2288 |
('l', 'files-with-matches', None, |
|
2298 | ('l', 'files-with-matches', None, | |
|
2299 | _('print only filenames and revs that match')), | |||
2289 | ('n', 'line-number', None, _('print matching line numbers')), |
|
2300 | ('n', 'line-number', None, _('print matching line numbers')), | |
2290 | ('r', 'rev', [], _('search in given revision range')), |
|
2301 | ('r', 'rev', [], _('search in given revision range')), | |
2291 | ('u', 'user', None, _('print user who committed change'))], |
|
2302 | ('u', 'user', None, _('print user who committed change'))], | |
@@ -2299,9 +2310,11 b' table = {' | |||||
2299 | "identify|id": (identify, [], _('hg identify')), |
|
2310 | "identify|id": (identify, [], _('hg identify')), | |
2300 | "import|patch": |
|
2311 | "import|patch": | |
2301 | (import_, |
|
2312 | (import_, | |
2302 | [('p', 'strip', 1, _('directory strip option for patch. This has the same\n') + |
|
2313 | [('p', 'strip', 1, | |
2303 | _('meaning as the corresponding patch option')), |
|
2314 | _('directory strip option for patch. This has the same\n') + | |
2304 | ('f', 'force', None, _('skip check for outstanding uncommitted changes')), |
|
2315 | _('meaning as the corresponding patch option')), | |
|
2316 | ('f', 'force', None, | |||
|
2317 | _('skip check for outstanding uncommitted changes')), | |||
2305 | ('b', 'base', "", _('base path'))], |
|
2318 | ('b', 'base', "", _('base path'))], | |
2306 | "hg import [-f] [-p NUM] [-b BASE] PATCH..."), |
|
2319 | "hg import [-f] [-p NUM] [-b BASE] PATCH..."), | |
2307 | "incoming|in": (incoming, |
|
2320 | "incoming|in": (incoming, | |
@@ -2313,8 +2326,10 b' table = {' | |||||
2313 | "locate": |
|
2326 | "locate": | |
2314 | (locate, |
|
2327 | (locate, | |
2315 | [('r', 'rev', '', _('search the repository as it stood at rev')), |
|
2328 | [('r', 'rev', '', _('search the repository as it stood at rev')), | |
2316 | ('0', 'print0', None, _('end filenames with NUL, for use with xargs')), |
|
2329 | ('0', 'print0', None, | |
2317 | ('f', 'fullpath', None, _('print complete paths from the filesystem root')), |
|
2330 | _('end filenames with NUL, for use with xargs')), | |
|
2331 | ('f', 'fullpath', None, | |||
|
2332 | _('print complete paths from the filesystem root')), | |||
2318 | ('I', 'include', [], _('include names matching the given patterns')), |
|
2333 | ('I', 'include', [], _('include names matching the given patterns')), | |
2319 | ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
|
2334 | ('X', 'exclude', [], _('exclude names matching the given patterns'))], | |
2320 | _('hg locate [OPTION]... [PATTERN]...')), |
|
2335 | _('hg locate [OPTION]... [PATTERN]...')), | |
@@ -2339,16 +2354,19 b' table = {' | |||||
2339 | "paths": (paths, [], _('hg paths [NAME]')), |
|
2354 | "paths": (paths, [], _('hg paths [NAME]')), | |
2340 | "^pull": |
|
2355 | "^pull": | |
2341 | (pull, |
|
2356 | (pull, | |
2342 | [('u', 'update', None, _('update the working directory to tip after pull')), |
|
2357 | [('u', 'update', None, | |
|
2358 | _('update the working directory to tip after pull')), | |||
2343 | ('e', 'ssh', "", _('specify ssh command to use')), |
|
2359 | ('e', 'ssh', "", _('specify ssh command to use')), | |
2344 | ('r', 'rev', [], _('a specific revision you would like to pull')), |
|
2360 | ('r', 'rev', [], _('a specific revision you would like to pull')), | |
2345 | ('', 'remotecmd', "", _('specify hg command to run on the remote side'))], |
|
2361 | ('', 'remotecmd', "", | |
|
2362 | _('specify hg command to run on the remote side'))], | |||
2346 | _('hg pull [-u] [-e FILE] [-r rev] [--remotecmd FILE] [SOURCE]')), |
|
2363 | _('hg pull [-u] [-e FILE] [-r rev] [--remotecmd FILE] [SOURCE]')), | |
2347 | "^push": |
|
2364 | "^push": | |
2348 | (push, |
|
2365 | (push, | |
2349 | [('f', 'force', None, _('force push')), |
|
2366 | [('f', 'force', None, _('force push')), | |
2350 | ('e', 'ssh', "", _('specify ssh command to use')), |
|
2367 | ('e', 'ssh', "", _('specify ssh command to use')), | |
2351 | ('', 'remotecmd', "", _('specify hg command to run on the remote side'))], |
|
2368 | ('', 'remotecmd', "", | |
|
2369 | _('specify hg command to run on the remote side'))], | |||
2352 | _('hg push [-f] [-e FILE] [--remotecmd FILE] [DEST]')), |
|
2370 | _('hg push [-f] [-e FILE] [--remotecmd FILE] [DEST]')), | |
2353 | "rawcommit": |
|
2371 | "rawcommit": | |
2354 | (rawcommit, |
|
2372 | (rawcommit, | |
@@ -2361,14 +2379,20 b' table = {' | |||||
2361 | _('hg rawcommit [OPTION]... [FILE]...')), |
|
2379 | _('hg rawcommit [OPTION]... [FILE]...')), | |
2362 | "recover": (recover, [], _("hg recover")), |
|
2380 | "recover": (recover, [], _("hg recover")), | |
2363 | "^remove|rm": (remove, |
|
2381 | "^remove|rm": (remove, | |
2364 |
[('I', 'include', [], |
|
2382 | [('I', 'include', [], | |
2365 |
|
|
2383 | _('include names matching the given patterns')), | |
|
2384 | ('X', 'exclude', [], | |||
|
2385 | _('exclude names matching the given patterns'))], | |||
2366 | _("hg remove [OPTION]... FILE...")), |
|
2386 | _("hg remove [OPTION]... FILE...")), | |
2367 | "rename|mv": (rename, |
|
2387 | "rename|mv": (rename, | |
2368 |
[('I', 'include', [], |
|
2388 | [('I', 'include', [], | |
2369 |
|
|
2389 | _('include names matching the given patterns')), | |
2370 | ('A', 'after', None, _('record a rename that has already occurred')), |
|
2390 | ('X', 'exclude', [], | |
2371 | ('f', 'force', None, _('forcibly copy over an existing managed file'))], |
|
2391 | _('exclude names matching the given patterns')), | |
|
2392 | ('A', 'after', None, | |||
|
2393 | _('record a rename that has already occurred')), | |||
|
2394 | ('f', 'force', None, | |||
|
2395 | _('forcibly copy over an existing managed file'))], | |||
2372 | _('hg rename [OPTION]... [SOURCE]... DEST')), |
|
2396 | _('hg rename [OPTION]... [SOURCE]... DEST')), | |
2373 | "^revert": |
|
2397 | "^revert": | |
2374 | (revert, |
|
2398 | (revert, | |
@@ -2383,7 +2407,8 b' table = {' | |||||
2383 | ('E', 'errorlog', '', _('name of error log file to write to')), |
|
2407 | ('E', 'errorlog', '', _('name of error log file to write to')), | |
2384 | ('p', 'port', 0, _('port to use (default: 8000)')), |
|
2408 | ('p', 'port', 0, _('port to use (default: 8000)')), | |
2385 | ('a', 'address', '', _('address to use')), |
|
2409 | ('a', 'address', '', _('address to use')), | |
2386 | ('n', 'name', "", _('name to show in web pages (default: working dir)')), |
|
2410 | ('n', 'name', "", | |
|
2411 | _('name to show in web pages (default: working dir)')), | |||
2387 | ('', 'stdio', None, _('for remote clients')), |
|
2412 | ('', 'stdio', None, _('for remote clients')), | |
2388 | ('t', 'templates', "", _('web templates to use')), |
|
2413 | ('t', 'templates', "", _('web templates to use')), | |
2389 | ('', 'style', "", _('template style to use')), |
|
2414 | ('', 'style', "", _('template style to use')), | |
@@ -2396,7 +2421,8 b' table = {' | |||||
2396 | ('r', 'removed', None, _('show only removed files')), |
|
2421 | ('r', 'removed', None, _('show only removed files')), | |
2397 | ('u', 'unknown', None, _('show only unknown (not tracked) files')), |
|
2422 | ('u', 'unknown', None, _('show only unknown (not tracked) files')), | |
2398 | ('n', 'no-status', None, _('hide status prefix')), |
|
2423 | ('n', 'no-status', None, _('hide status prefix')), | |
2399 | ('0', 'print0', None, _('end filenames with NUL, for use with xargs')), |
|
2424 | ('0', 'print0', None, | |
|
2425 | _('end filenames with NUL, for use with xargs')), | |||
2400 | ('I', 'include', [], _('include names matching the given patterns')), |
|
2426 | ('I', 'include', [], _('include names matching the given patterns')), | |
2401 | ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
|
2427 | ('X', 'exclude', [], _('exclude names matching the given patterns'))], | |
2402 | _("hg status [OPTION]... [FILE]...")), |
|
2428 | _("hg status [OPTION]... [FILE]...")), | |
@@ -2430,7 +2456,8 b' table = {' | |||||
2430 | globalopts = [ |
|
2456 | globalopts = [ | |
2431 | ('R', 'repository', "", _("repository root directory")), |
|
2457 | ('R', 'repository', "", _("repository root directory")), | |
2432 | ('', 'cwd', '', _("change working directory")), |
|
2458 | ('', 'cwd', '', _("change working directory")), | |
2433 | ('y', 'noninteractive', None, _("do not prompt, assume 'yes' for any required answers")), |
|
2459 | ('y', 'noninteractive', None, | |
|
2460 | _("do not prompt, assume 'yes' for any required answers")), | |||
2434 | ('q', 'quiet', None, _("suppress output")), |
|
2461 | ('q', 'quiet', None, _("suppress output")), | |
2435 | ('v', 'verbose', None, _("enable additional output")), |
|
2462 | ('v', 'verbose', None, _("enable additional output")), | |
2436 | ('', 'debug', None, _("enable debugging output")), |
|
2463 | ('', 'debug', None, _("enable debugging output")), |
General Comments 0
You need to be logged in to leave comments.
Login now