Mercurial > hg
comparison hgext/patchbomb.py @ 5746:d3ef7e86bc3b
patchbomb: break lines > 80 chars (coding style)
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Tue, 18 Dec 2007 22:50:27 +0100 |
parents | 4f977c6d3c03 |
children | 3aa0af7d539d |
comparison
equal
deleted
inserted
replaced
5745:234e40e636a8 | 5746:d3ef7e86bc3b |
---|---|
232 or opts.get('outgoing') or opts.get('bundle')): | 232 or opts.get('outgoing') or opts.get('bundle')): |
233 raise util.Abort(_('specify at least one changeset with -r or -o')) | 233 raise util.Abort(_('specify at least one changeset with -r or -o')) |
234 | 234 |
235 cmdutil.setremoteconfig(ui, opts) | 235 cmdutil.setremoteconfig(ui, opts) |
236 if opts.get('outgoing') and opts.get('bundle'): | 236 if opts.get('outgoing') and opts.get('bundle'): |
237 raise util.Abort(_("--outgoing mode always on with --bundle; do not re-specify --outgoing")) | 237 raise util.Abort(_("--outgoing mode always on with --bundle;" |
238 " do not re-specify --outgoing")) | |
238 | 239 |
239 if opts.get('outgoing') or opts.get('bundle'): | 240 if opts.get('outgoing') or opts.get('bundle'): |
240 if len(revs) > 1: | 241 if len(revs) > 1: |
241 raise util.Abort(_("too many destinations")) | 242 raise util.Abort(_("too many destinations")) |
242 dest = revs and revs[0] or None | 243 dest = revs and revs[0] or None |
283 'git': opts.get('git')}) | 284 'git': opts.get('git')}) |
284 | 285 |
285 jumbo = [] | 286 jumbo = [] |
286 msgs = [] | 287 msgs = [] |
287 | 288 |
288 ui.write(_('This patch series consists of %d patches.\n\n') % len(patches)) | 289 ui.write(_('This patch series consists of %d patches.\n\n') |
290 % len(patches)) | |
289 | 291 |
290 for p, i in zip(patches, xrange(len(patches))): | 292 for p, i in zip(patches, xrange(len(patches))): |
291 jumbo.extend(p) | 293 jumbo.extend(p) |
292 msgs.append(makepatch(p, i + 1, len(patches))) | 294 msgs.append(makepatch(p, i + 1, len(patches))) |
293 | 295 |