[PATCH] patchbomb: make "hg email -b" w/o destination work as advertised

Christian Ebert blacktrash at gmx.net
Sun Dec 16 16:11:22 CST 2007


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1197842123 -3600
# Node ID 585de8ec5401fe96eec4c940d31f19a305b08f0c
# Parent  165cda754d9e3bb54fed9e3d0038ad64ff24eae8
patchbomb: make "hg email -b" w/o destination work as advertised

diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -228,7 +228,8 @@ def patchbomb(ui, repo, *revs, **opts):
         # 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)



More information about the Mercurial-devel mailing list