Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revset.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 | 4f695345979c |
children | a6a8809c6e33 |
line wrap: on
line diff
--- a/mercurial/revset.py Fri Jun 10 11:43:38 2011 -0500 +++ b/mercurial/revset.py Fri Jun 10 11:43:38 2011 -0500 @@ -599,7 +599,7 @@ revs, checkout = hg.addbranchrevs(repo, repo, branches, []) if revs: revs = [repo.lookup(rev) for rev in revs] - other = hg.repository(hg.remoteui(repo, {}), dest) + other = hg.peer(repo, {}, dest) repo.ui.pushbuffer() common, outheads = discovery.findcommonoutgoing(repo, other, onlyheads=revs) repo.ui.popbuffer()