Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.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 | 1ceb2cf9f9d9 |
children | 5f002e3336ba |
line wrap: on
line diff
--- a/mercurial/hg.py Fri Jun 10 11:43:38 2011 -0500 +++ b/mercurial/hg.py Fri Jun 10 11:43:38 2011 -0500 @@ -428,7 +428,7 @@ and is supposed to contain only code that can't be unified. """ source, branches = parseurl(ui.expandpath(source), opts.get('branch')) - other = repository(remoteui(repo, opts), source) + other = peer(repo, opts, source) ui.status(_('comparing with %s\n') % util.hidepassword(source)) revs, checkout = addbranchrevs(repo, other, branches, opts.get('rev')) @@ -486,7 +486,7 @@ if revs: revs = [repo.lookup(rev) for rev in revs] - other = repository(remoteui(repo, opts), dest) + other = peer(repo, opts, dest) common, outheads = discovery.findcommonoutgoing(repo, other, revs, force=opts.get('force')) o = repo.changelog.findmissing(common, outheads)