Mercurial > hg > gitweb
comparison hgext/patchbomb.py @ 4283:8625504f507c
Slight refining to help text in patchbomb.py
author | John Goerzen <jgoerzen@complete.org> |
---|---|
date | Mon, 26 Mar 2007 20:46:49 -0500 |
parents | a9336520a4ee |
children | a04141f51056 |
comparison
equal
deleted
inserted
replaced
4282:a1406a50ca83 | 4283:8625504f507c |
---|---|
75 # present on windows | 75 # present on windows |
76 import readline | 76 import readline |
77 except ImportError: pass | 77 except ImportError: pass |
78 | 78 |
79 def patchbomb(ui, repo, *revs, **opts): | 79 def patchbomb(ui, repo, *revs, **opts): |
80 '''send changesets as a series of patch emails | 80 '''send changesets by email |
81 | 81 |
82 By default, the series starts with a "[PATCH 0 of N]" introduction, which | 82 By default, diffs are sent in the format generated by hg export, |
83 describes the series as a whole. | 83 one per message. The series starts with a "[PATCH 0 of N]" |
84 introduction, which describes the series as a whole. | |
84 | 85 |
85 Each patch email has a Subject line of "[PATCH M of N] ...", using | 86 Each patch email has a Subject line of "[PATCH M of N] ...", using |
86 the first line of the changeset description as the subject text. | 87 the first line of the changeset description as the subject text. |
87 The message contains two or three body parts. First, the rest of | 88 The message contains two or three body parts. First, the rest of |
88 the changeset description. Next, (optionally) if the diffstat | 89 the changeset description. Next, (optionally) if the diffstat |
113 hg email -b DEST # send bundle of all patches not in DEST | 114 hg email -b DEST # send bundle of all patches not in DEST |
114 hg email -b -r 3000 # bundle of all ancestors of 3000 not in default | 115 hg email -b -r 3000 # bundle of all ancestors of 3000 not in default |
115 hg email -b -r 3000 DEST # bundle of all ancestors of 3000 not in DEST | 116 hg email -b -r 3000 DEST # bundle of all ancestors of 3000 not in DEST |
116 | 117 |
117 Before using this command, you will need to enable email in your hgrc. | 118 Before using this command, you will need to enable email in your hgrc. |
118 See hgrc(5) for details. | 119 See the [email] section in hgrc(5) for details. |
119 ''' | 120 ''' |
120 | 121 |
121 def prompt(prompt, default = None, rest = ': ', empty_ok = False): | 122 def prompt(prompt, default = None, rest = ': ', empty_ok = False): |
122 if default: prompt += ' [%s]' % default | 123 if default: prompt += ' [%s]' % default |
123 prompt += rest | 124 prompt += rest |