diff -r 1ceb2cf9f9d9 -r 517e1d88bf7e mercurial/revset.py --- 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()