Show More
@@ -7,7 +7,7 b'' | |||||
7 |
|
7 | |||
8 | from node import hex, nullid, nullrev, short |
|
8 | from node import hex, nullid, nullrev, short | |
9 | from i18n import _, gettext |
|
9 | from i18n import _, gettext | |
10 | import os, re, sys |
|
10 | import os, re, sys, textwrap | |
11 | import hg, util, revlog, bundlerepo, extensions, copies, context, error |
|
11 | import hg, util, revlog, bundlerepo, extensions, copies, context, error | |
12 | import difflib, patch, time, help, mdiff, tempfile, url, encoding |
|
12 | import difflib, patch, time, help, mdiff, tempfile, url, encoding | |
13 | import archival, changegroup, cmdutil, hgweb.server, sshserver, hbisect |
|
13 | import archival, changegroup, cmdutil, hgweb.server, sshserver, hbisect | |
@@ -1532,7 +1532,11 b' def help_(ui, name=None, with_version=Fa' | |||||
1532 | opts_len = max([len(line[0]) for line in opt_output if line[1]] or [0]) |
|
1532 | opts_len = max([len(line[0]) for line in opt_output if line[1]] or [0]) | |
1533 | for first, second in opt_output: |
|
1533 | for first, second in opt_output: | |
1534 | if second: |
|
1534 | if second: | |
1535 | ui.write(" %-*s %s\n" % (opts_len, first, second)) |
|
1535 | # wrap descriptions at 70 characters, just like the | |
|
1536 | # main help texts | |||
|
1537 | second = textwrap.wrap(second, width=70 - opts_len - 3) | |||
|
1538 | pad = '\n' + ' ' * (opts_len + 3) | |||
|
1539 | ui.write(" %-*s %s\n" % (opts_len, first, pad.join(second))) | |||
1536 | else: |
|
1540 | else: | |
1537 | ui.write("%s\n" % first) |
|
1541 | ui.write("%s\n" % first) | |
1538 |
|
1542 |
@@ -40,7 +40,8 b' enabled extensions:' | |||||
40 | global options: |
|
40 | global options: | |
41 | -R --repository repository root directory or symbolic path name |
|
41 | -R --repository repository root directory or symbolic path name | |
42 | --cwd change working directory |
|
42 | --cwd change working directory | |
43 |
-y --noninteractive do not prompt, assume 'yes' for any required |
|
43 | -y --noninteractive do not prompt, assume 'yes' for any required | |
|
44 | answers | |||
44 | -q --quiet suppress output |
|
45 | -q --quiet suppress output | |
45 | -v --verbose enable additional output |
|
46 | -v --verbose enable additional output | |
46 | --config set/override config option |
|
47 | --config set/override config option |
@@ -27,8 +27,10 b' interactively select changes to commit' | |||||
27 |
|
27 | |||
28 | options: |
|
28 | options: | |
29 |
|
29 | |||
30 |
-A --addremove mark new/missing files as added/removed before |
|
30 | -A --addremove mark new/missing files as added/removed before | |
31 | --close-branch mark a branch as closed, hiding it from the branch list |
|
31 | committing | |
|
32 | --close-branch mark a branch as closed, hiding it from the branch | |||
|
33 | list | |||
32 | -I --include include names matching the given patterns |
|
34 | -I --include include names matching the given patterns | |
33 | -X --exclude exclude names matching the given patterns |
|
35 | -X --exclude exclude names matching the given patterns | |
34 | -m --message use <text> as commit message |
|
36 | -m --message use <text> as commit message |
General Comments 0
You need to be logged in to leave comments.
Login now