patchbomb: make "hg email -b" w/o destination work as advertised
authorChristian Ebert <blacktrash@gmx.net>
Sun, 16 Dec 2007 22:55:23 +0100
changeset 5643 eae4553b2763
parent 5642 cd893635b542
child 5665 495a9dc86fc2
child 5667 f29b7c8419cb
patchbomb: make "hg email -b" w/o destination work as advertised
hgext/patchbomb.py
--- a/hgext/patchbomb.py	Mon Dec 10 14:54:41 2007 -0800
+++ b/hgext/patchbomb.py	Sun Dec 16 22:55:23 2007 +0100
@@ -232,7 +232,8 @@
         # really sending
         mail.validateconfig(ui)
 
-    if not (revs or opts.get('rev') or opts.get('outgoing')):
+    if not (revs or opts.get('rev')
+            or opts.get('outgoing') or opts.get('bundle')):
         raise util.Abort(_('specify at least one changeset with -r or -o'))
 
     cmdutil.setremoteconfig(ui, opts)