changeset 17177:ef507130fc92

patchbomb: support --outgoing and revsets With --outgoing, input revisions were passed to getoutgoing() before being resolved.
author Patrick Mezard <patrick@mezard.eu>
date Sun, 24 Jun 2012 17:39:27 +0200
parents 2ab165cf3d8a
children 8308f6284640
files hgext/patchbomb.py tests/test-patchbomb.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/patchbomb.py	Sat Jul 14 19:21:31 2012 +0200
+++ b/hgext/patchbomb.py	Sun Jun 24 17:39:27 2012 +0200
@@ -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()
--- a/tests/test-patchbomb.t	Sat Jul 14 19:21:31 2012 +0200
+++ b/tests/test-patchbomb.t	Sun Jun 24 17:39:27 2012 +0200
@@ -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.