Mercurial > hg
comparison mercurial/commands.py @ 17168:e058f4eec69c
push: accept revset argument for --rev
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Thu, 05 Jul 2012 19:53:04 +0200 |
parents | 4b33422e2572 |
children | 6f71167292f2 |
comparison
equal
deleted
inserted
replaced
17167:5f131ae05905 | 17168:e058f4eec69c |
---|---|
4618 dest, branches = hg.parseurl(dest, opts.get('branch')) | 4618 dest, branches = hg.parseurl(dest, opts.get('branch')) |
4619 ui.status(_('pushing to %s\n') % util.hidepassword(dest)) | 4619 ui.status(_('pushing to %s\n') % util.hidepassword(dest)) |
4620 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) | 4620 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) |
4621 other = hg.peer(repo, opts, dest) | 4621 other = hg.peer(repo, opts, dest) |
4622 if revs: | 4622 if revs: |
4623 revs = [repo.lookup(rev) for rev in revs] | 4623 revs = [repo.lookup(r) for r in scmutil.revrange(repo, revs)] |
4624 | 4624 |
4625 repo._subtoppath = dest | 4625 repo._subtoppath = dest |
4626 try: | 4626 try: |
4627 # push subrepos depth-first for coherent ordering | 4627 # push subrepos depth-first for coherent ordering |
4628 c = repo[''] | 4628 c = repo[''] |