push: accept revset argument for --rev
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 05 Jul 2012 19:53:04 +0200
changeset 17168 e058f4eec69c
parent 17167 5f131ae05905
child 17169 c18ecebed3f1
push: accept revset argument for --rev
mercurial/commands.py
--- a/mercurial/commands.py	Fri Jul 06 19:48:19 2012 +0200
+++ b/mercurial/commands.py	Thu Jul 05 19:53:04 2012 +0200
@@ -4620,7 +4620,7 @@
     revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev'))
     other = hg.peer(repo, opts, dest)
     if revs:
-        revs = [repo.lookup(rev) for rev in revs]
+        revs = [repo.lookup(r) for r in scmutil.revrange(repo, revs)]
 
     repo._subtoppath = dest
     try: