##// END OF EJS Templates
Merge with crew
Matt Mackall -
r3887:57b79760 merge default
parent child Browse files
Show More
@@ -178,6 +178,7 b' typeset -A _hg_cmd_globals'
178 }
178 }
179
179
180 _hg_status() {
180 _hg_status() {
181 [[ -d $PREFIX ]] || PREFIX=$PREFIX:h
181 status_files=(${(ps:\0:)"$(_hg_cmd status -0n$1 ./$PREFIX 2>/dev/null)"})
182 status_files=(${(ps:\0:)"$(_hg_cmd status -0n$1 ./$PREFIX 2>/dev/null)"})
182 }
183 }
183
184
@@ -215,8 +215,6 b' def patchbomb(ui, repo, *revs, **opts):'
215 bcc = [a.strip() for a in bcc if a.strip()]
215 bcc = [a.strip() for a in bcc if a.strip()]
216
216
217 if len(patches) > 1:
217 if len(patches) > 1:
218 ui.write(_('\nWrite the introductory message for the patch series.\n\n'))
219
220 tlen = len(str(len(patches)))
218 tlen = len(str(len(patches)))
221
219
222 subj = '[PATCH %0*d of %d] %s' % (
220 subj = '[PATCH %0*d of %d] %s' % (
@@ -226,21 +224,13 b' def patchbomb(ui, repo, *revs, **opts):'
226 prompt('Subject:', rest = ' [PATCH %0*d of %d] ' % (tlen, 0,
224 prompt('Subject:', rest = ' [PATCH %0*d of %d] ' % (tlen, 0,
227 len(patches))))
225 len(patches))))
228
226
229 ui.write(_('Finish with ^D or a dot on a line by itself.\n\n'))
227 body = ''
230
231 body = []
232
233 while True:
234 try: l = raw_input()
235 except EOFError: break
236 if l == '.': break
237 body.append(l)
238
239 if opts['diffstat']:
228 if opts['diffstat']:
240 d = cdiffstat(_('Final summary:\n'), jumbo)
229 d = cdiffstat(_('Final summary:\n'), jumbo)
241 if d: body.append('\n' + d)
230 if d: body = '\n' + d
242
231
243 body = '\n'.join(body) + '\n'
232 ui.write(_('\nWrite the introductory message for the patch series.\n\n'))
233 body = ui.edit(body, sender)
244
234
245 msg = email.MIMEText.MIMEText(body)
235 msg = email.MIMEText.MIMEText(body)
246 msg['Subject'] = subj
236 msg['Subject'] = subj
@@ -2581,7 +2581,7 b' table = {'
2581 ('n', 'number', None, _('list the revision number (default)')),
2581 ('n', 'number', None, _('list the revision number (default)')),
2582 ('c', 'changeset', None, _('list the changeset')),
2582 ('c', 'changeset', None, _('list the changeset')),
2583 ] + walkopts,
2583 ] + walkopts,
2584 _('hg annotate [-r REV] [-a] [-u] [-d] [-n] [-c] FILE...')),
2584 _('hg annotate [-r REV] [-f] [-a] [-u] [-d] [-n] [-c] FILE...')),
2585 "archive":
2585 "archive":
2586 (archive,
2586 (archive,
2587 [('', 'no-decode', None, _('do not pass files through decoders')),
2587 [('', 'no-decode', None, _('do not pass files through decoders')),
@@ -2610,7 +2610,7 b' table = {'
2610 ('', 'base', [],
2610 ('', 'base', [],
2611 _('a base changeset to specify instead of a destination')),
2611 _('a base changeset to specify instead of a destination')),
2612 ] + remoteopts,
2612 ] + remoteopts,
2613 _('hg bundle [--base REV]... [--rev REV]... FILE [DEST]')),
2613 _('hg bundle [-f] [-r REV]... [--base REV]... FILE [DEST]')),
2614 "cat":
2614 "cat":
2615 (cat,
2615 (cat,
2616 [('o', 'output', '', _('print output to file with formatted name')),
2616 [('o', 'output', '', _('print output to file with formatted name')),
@@ -2679,7 +2679,7 b' table = {'
2679 ('B', 'ignore-blank-lines', None,
2679 ('B', 'ignore-blank-lines', None,
2680 _('ignore changes whose lines are all blank')),
2680 _('ignore changes whose lines are all blank')),
2681 ] + walkopts,
2681 ] + walkopts,
2682 _('hg diff [-a] [-I] [-X] [-r REV1 [-r REV2]] [FILE]...')),
2682 _('hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...')),
2683 "^export":
2683 "^export":
2684 (export,
2684 (export,
2685 [('o', 'output', '', _('print output to file with formatted name')),
2685 [('o', 'output', '', _('print output to file with formatted name')),
@@ -2687,7 +2687,7 b' table = {'
2687 ('g', 'git', None, _('use git extended diff format')),
2687 ('g', 'git', None, _('use git extended diff format')),
2688 ('', 'nodates', None, _("don't include dates in diff headers")),
2688 ('', 'nodates', None, _("don't include dates in diff headers")),
2689 ('', 'switch-parent', None, _('diff against the second parent'))],
2689 ('', 'switch-parent', None, _('diff against the second parent'))],
2690 _('hg export [-a] [-o OUTFILESPEC] REV...')),
2690 _('hg export [OPTION]... [-o OUTFILESPEC] REV...')),
2691 "grep":
2691 "grep":
2692 (grep,
2692 (grep,
2693 [('0', 'print0', None, _('end fields with NUL')),
2693 [('0', 'print0', None, _('end fields with NUL')),
@@ -2730,10 +2730,12 b' table = {'
2730 ('r', 'rev', [], _('a specific revision up to which you would like to pull')),
2730 ('r', 'rev', [], _('a specific revision up to which you would like to pull')),
2731 ('', 'template', '', _('display with template')),
2731 ('', 'template', '', _('display with template')),
2732 ] + remoteopts,
2732 ] + remoteopts,
2733 _('hg incoming [-p] [-n] [-M] [-r REV]...'
2733 _('hg incoming [-p] [-n] [-M] [-f] [-r REV]...'
2734 ' [--bundle FILENAME] [SOURCE]')),
2734 ' [--bundle FILENAME] [SOURCE]')),
2735 "^init":
2735 "^init":
2736 (init, remoteopts, _('hg init [-e FILE] [--remotecmd FILE] [DEST]')),
2736 (init,
2737 remoteopts,
2738 _('hg init [-e CMD] [--remotecmd CMD] [DEST]')),
2737 "locate":
2739 "locate":
2738 (locate,
2740 (locate,
2739 [('r', 'rev', '', _('search the repository as it stood at rev')),
2741 [('r', 'rev', '', _('search the repository as it stood at rev')),
@@ -2778,7 +2780,7 b' table = {'
2778 ('n', 'newest-first', None, _('show newest record first')),
2780 ('n', 'newest-first', None, _('show newest record first')),
2779 ('', 'template', '', _('display with template')),
2781 ('', 'template', '', _('display with template')),
2780 ] + remoteopts,
2782 ] + remoteopts,
2781 _('hg outgoing [-M] [-p] [-n] [-r REV]... [DEST]')),
2783 _('hg outgoing [-M] [-p] [-n] [-f] [-r REV]... [DEST]')),
2782 "^parents":
2784 "^parents":
2783 (parents,
2785 (parents,
2784 [('r', 'rev', '', _('show parents from the specified rev')),
2786 [('r', 'rev', '', _('show parents from the specified rev')),
@@ -2792,15 +2794,16 b' table = {'
2792 _('update to new tip if changesets were pulled')),
2794 _('update to new tip if changesets were pulled')),
2793 ('f', 'force', None,
2795 ('f', 'force', None,
2794 _('run even when remote repository is unrelated')),
2796 _('run even when remote repository is unrelated')),
2795 ('r', 'rev', [], _('a specific revision up to which you would like to pull')),
2797 ('r', 'rev', [],
2798 _('a specific revision up to which you would like to pull')),
2796 ] + remoteopts,
2799 ] + remoteopts,
2797 _('hg pull [-u] [-r REV]... [-e FILE] [--remotecmd FILE] [SOURCE]')),
2800 _('hg pull [-u] [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [SOURCE]')),
2798 "^push":
2801 "^push":
2799 (push,
2802 (push,
2800 [('f', 'force', None, _('force push')),
2803 [('f', 'force', None, _('force push')),
2801 ('r', 'rev', [], _('a specific revision you would like to push')),
2804 ('r', 'rev', [], _('a specific revision you would like to push')),
2802 ] + remoteopts,
2805 ] + remoteopts,
2803 _('hg push [-f] [-r REV]... [-e FILE] [--remotecmd FILE] [DEST]')),
2806 _('hg push [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]')),
2804 "debugrawcommit|rawcommit":
2807 "debugrawcommit|rawcommit":
2805 (rawcommit,
2808 (rawcommit,
2806 [('p', 'parent', [], _('parent')),
2809 [('p', 'parent', [], _('parent')),
@@ -2830,7 +2833,7 b' table = {'
2830 ('r', 'rev', '', _('revision to revert to')),
2833 ('r', 'rev', '', _('revision to revert to')),
2831 ('', 'no-backup', None, _('do not save backup copies of files')),
2834 ('', 'no-backup', None, _('do not save backup copies of files')),
2832 ] + walkopts + dryrunopts,
2835 ] + walkopts + dryrunopts,
2833 _('hg revert [-r REV] [NAME]...')),
2836 _('hg revert [OPTION]... [-r REV] [NAME]...')),
2834 "rollback": (rollback, [], _('hg rollback')),
2837 "rollback": (rollback, [], _('hg rollback')),
2835 "root": (root, [], _('hg root')),
2838 "root": (root, [], _('hg root')),
2836 "showconfig|debugconfig":
2839 "showconfig|debugconfig":
@@ -2896,7 +2899,7 b' table = {'
2896 (update,
2899 (update,
2897 [('C', 'clean', None, _('overwrite locally modified files')),
2900 [('C', 'clean', None, _('overwrite locally modified files')),
2898 ('d', 'date', '', _('tipmost revision matching date'))],
2901 ('d', 'date', '', _('tipmost revision matching date'))],
2899 _('hg update [-C] [REV]')),
2902 _('hg update [-C] [-d DATE] [REV]')),
2900 "verify": (verify, [], _('hg verify')),
2903 "verify": (verify, [], _('hg verify')),
2901 "version": (version_, [], _('hg version')),
2904 "version": (version_, [], _('hg version')),
2902 }
2905 }
@@ -651,7 +651,7 b' class hgweb(object):'
651 def run_wsgi(self, req):
651 def run_wsgi(self, req):
652 def header(**map):
652 def header(**map):
653 header_file = cStringIO.StringIO(
653 header_file = cStringIO.StringIO(
654 ''.join(self.t("header", encoding = util._encoding, **map)))
654 ''.join(self.t("header", encoding=util._encoding, **map)))
655 msg = mimetools.Message(header_file, 0)
655 msg = mimetools.Message(header_file, 0)
656 req.header(msg.items())
656 req.header(msg.items())
657 yield header_file.read()
657 yield header_file.read()
@@ -60,7 +60,8 b' class hgwebdir(object):'
60
60
61 def run_wsgi(self, req):
61 def run_wsgi(self, req):
62 def header(**map):
62 def header(**map):
63 header_file = cStringIO.StringIO(''.join(tmpl("header", **map)))
63 header_file = cStringIO.StringIO(
64 ''.join(tmpl("header", encoding=util._encoding, **map)))
64 msg = mimetools.Message(header_file, 0)
65 msg = mimetools.Message(header_file, 0)
65 req.header(msg.items())
66 req.header(msg.items())
66 yield header_file.read()
67 yield header_file.read()
@@ -163,7 +163,7 b' options:'
163 -I --include include names matching the given patterns
163 -I --include include names matching the given patterns
164 -X --exclude exclude names matching the given patterns
164 -X --exclude exclude names matching the given patterns
165 -n --dry-run do not perform actions, just print output
165 -n --dry-run do not perform actions, just print output
166 hg diff [-a] [-I] [-X] [-r REV1 [-r REV2]] [FILE]...
166 hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...
167
167
168 diff repository (or selected files)
168 diff repository (or selected files)
169
169
General Comments 0
You need to be logged in to leave comments. Login now