[PATCH 2 of 3] patchbomb: support --outgoing and revsets
Patrick Mezard
patrick at mezard.eu
Sat Jul 14 12:28:26 CDT 2012
# HG changeset patch
# User Patrick Mezard <patrick at mezard.eu>
# Date 1340552367 -7200
# Node ID 9b0fad3b523376d26fe12c8269f530ac228861fd
# Parent 7408a86d1c9fd461cce33bb0154f2936463c320a
patchbomb: support --outgoing and revsets
With --outgoing, input revisions were passed to getoutgoing() before
being resolved.
diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -277,7 +277,7 @@
dest, branches = hg.parseurl(dest)
revs, checkout = hg.addbranchrevs(repo, repo, branches, revs)
if revs:
- revs = [repo.lookup(rev) for rev in revs]
+ revs = [repo.lookup(r) for r in scmutil.revrange(repo, revs)]
other = hg.peer(repo, opts, dest)
ui.status(_('comparing with %s\n') % util.hidepassword(dest))
repo.ui.pushbuffer()
diff --git a/tests/test-patchbomb.t b/tests/test-patchbomb.t
--- a/tests/test-patchbomb.t
+++ b/tests/test-patchbomb.t
@@ -2103,7 +2103,7 @@
o 0:8580ff50825a a
$ hg phase --force --secret -r 10
- $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t -r 6 -r 10
+ $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t -r 'rev(10) or rev(6)'
comparing with ../t
From [test]: test
this patch series consists of 6 patches.
More information about the Mercurial-devel
mailing list