comparison mercurial/hg.py @ 17198:ecde35a1af9e

outgoing: accept revset argument for --rev There may be a more generic way that would add revset support to more commands by adding revset support to addbranchrevs(), but given the proximity of the next code freeze, a minimal change seems like the better choice.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 15 Jul 2012 12:43:10 -0400
parents 32a6a33b9a35
children 6ffb35b2284c
comparison
equal deleted inserted replaced
17197:67b8cca2f12b 17198:ecde35a1af9e
516 dest = ui.expandpath(dest or 'default-push', dest or 'default') 516 dest = ui.expandpath(dest or 'default-push', dest or 'default')
517 dest, branches = parseurl(dest, opts.get('branch')) 517 dest, branches = parseurl(dest, opts.get('branch'))
518 ui.status(_('comparing with %s\n') % util.hidepassword(dest)) 518 ui.status(_('comparing with %s\n') % util.hidepassword(dest))
519 revs, checkout = addbranchrevs(repo, repo, branches, opts.get('rev')) 519 revs, checkout = addbranchrevs(repo, repo, branches, opts.get('rev'))
520 if revs: 520 if revs:
521 revs = [repo.lookup(rev) for rev in revs] 521 revs = [repo.lookup(rev) for rev in scmutil.revrange(repo, revs)]
522 522
523 other = peer(repo, opts, dest) 523 other = peer(repo, opts, dest)
524 outgoing = discovery.findcommonoutgoing(repo, other, revs, 524 outgoing = discovery.findcommonoutgoing(repo, other, revs,
525 force=opts.get('force')) 525 force=opts.get('force'))
526 o = outgoing.missing 526 o = outgoing.missing