Mercurial > hg
comparison hgext/patchbomb.py @ 14556:517e1d88bf7e
hg: change various repository() users to use peer() where appropriate
This gets all the easy cases (peers that aren't also used as repositories).
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 10 Jun 2011 11:43:38 -0500 |
parents | 0368ad7963be |
children | d67a15b2e608 |
comparison
equal
deleted
inserted
replaced
14555:1ceb2cf9f9d9 | 14556:517e1d88bf7e |
---|---|
274 def getoutgoing(dest, revs): | 274 def getoutgoing(dest, revs): |
275 '''Return the revisions present locally but not in dest''' | 275 '''Return the revisions present locally but not in dest''' |
276 dest = ui.expandpath(dest or 'default-push', dest or 'default') | 276 dest = ui.expandpath(dest or 'default-push', dest or 'default') |
277 dest, branches = hg.parseurl(dest) | 277 dest, branches = hg.parseurl(dest) |
278 revs, checkout = hg.addbranchrevs(repo, repo, branches, revs) | 278 revs, checkout = hg.addbranchrevs(repo, repo, branches, revs) |
279 other = hg.repository(hg.remoteui(repo, opts), dest) | 279 other = hg.peer(repo, opts, dest) |
280 ui.status(_('comparing with %s\n') % util.hidepassword(dest)) | 280 ui.status(_('comparing with %s\n') % util.hidepassword(dest)) |
281 common, _anyinc, _heads = discovery.findcommonincoming(repo, other) | 281 common, _anyinc, _heads = discovery.findcommonincoming(repo, other) |
282 nodes = revs and map(repo.lookup, revs) or revs | 282 nodes = revs and map(repo.lookup, revs) or revs |
283 o = repo.changelog.findmissing(common, heads=nodes) | 283 o = repo.changelog.findmissing(common, heads=nodes) |
284 if not o: | 284 if not o: |