[PATCH 1 of 8] push: accept revset argument for --rev
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Thu Jul 5 19:27:23 CDT 2012
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1341510784 -7200
# Node ID 4afb28fd4010adcb5cb98017c237e34ebcf486bf
# Parent 2e13c1bd34dc6afda8fc7cfa22a8cd658276724f
push: accept revset argument for --rev
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4615,7 +4615,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:
More information about the Mercurial-devel
mailing list