diff -r 1ceb2cf9f9d9 -r 517e1d88bf7e hgext/fetch.py --- 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