equal
deleted
inserted
replaced
4146 ui.status(_('pushing to %s\n') % util.hidepassword(dest)) |
4146 ui.status(_('pushing to %s\n') % util.hidepassword(dest)) |
4147 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) |
4147 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) |
4148 other = hg.peer(repo, opts, dest) |
4148 other = hg.peer(repo, opts, dest) |
4149 |
4149 |
4150 if revs: |
4150 if revs: |
4151 revs = [repo.lookup(r) for r in scmutil.revrange(repo, revs)] |
4151 revs = [repo[r].node() for r in scmutil.revrange(repo, revs)] |
4152 if not revs: |
4152 if not revs: |
4153 raise error.Abort(_("specified revisions evaluate to an empty set"), |
4153 raise error.Abort(_("specified revisions evaluate to an empty set"), |
4154 hint=_("use different revision arguments")) |
4154 hint=_("use different revision arguments")) |
4155 elif path.pushrev: |
4155 elif path.pushrev: |
4156 # It doesn't make any sense to specify ancestor revisions. So limit |
4156 # It doesn't make any sense to specify ancestor revisions. So limit |