Mercurial > public > mercurial-scm > hg-stable
diff hgext/fetch.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 | 924c82157d46 |
children | 217b7d83afc3 |
line wrap: on
line diff
--- a/hgext/fetch.py Fri Jun 10 11:43:38 2011 -0500 +++ b/hgext/fetch.py Fri Jun 10 11:43:38 2011 -0500 @@ -63,8 +63,7 @@ raise util.Abort(_('multiple heads in this branch ' '(use "hg heads ." and "hg merge" to merge)')) - other = hg.repository(hg.remoteui(repo, opts), - ui.expandpath(source)) + other = hg.peer(repo, opts, ui.expandpath(source)) ui.status(_('pulling from %s\n') % util.hidepassword(ui.expandpath(source))) revs = None