[PATCH 2 of 3] Add common bundle/outgoing options to hg email

John Goerzen jgoerzen at complete.org
Thu Mar 22 14:05:35 CDT 2007


# HG changeset patch
# User John Goerzen <jgoerzen at complete.org>
# Date 1174589540 18000
# Node ID 4a25b21718d95ba251c3d7d0386815b2b8a3683a
# Parent  f374388ce19350fb47b765727971d6f39ab17c34
Add common bundle/outgoing options to hg email

diff -r f374388ce193 -r 4a25b21718d9 hgext/patchbomb.py
--- a/hgext/patchbomb.py	Thu Mar 22 13:46:03 2007 -0500
+++ b/hgext/patchbomb.py	Thu Mar 22 13:52:20 2007 -0500
@@ -189,7 +189,7 @@ def patchbomb(ui, repo, *revs, **opts):
         tmpdir = tempfile.mkdtemp(prefix='hg-email-bundle-')
         tmpfn = os.path.join(tmpdir, 'bundle')
         try:
-            commands.bundle(ui, repo, tmpfn, dest, *revs, **{'force': 0})
+            commands.bundle(ui, repo, tmpfn, dest, *revs, **opts)
             return open(tmpfn).read()
         finally:
             try:
@@ -377,6 +377,10 @@ cmdtable = {
       ('b', 'bundle', None, _('send changes not in target as a binary bundle')),
       ('r', 'rev', [], _('a revision to send')),
       ('s', 'subject', '', 'subject of first message (intro or single patch)'),
-      ('t', 'to', [], 'email addresses of recipients')] + commands.remoteopts,
+      ('t', 'to', [], 'email addresses of recipients'),
+      ('', 'force', None, _('run even when remote repository is unrelated (with -b)')),
+      ('', 'base', [],
+          _('a base changeset to specify instead of a destination (with -b)'))]
+      + commands.remoteopts,
      "hg email [OPTION]... [DEST]...")
     }


More information about the Mercurial-devel mailing list