diff hgext/convert/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 1fe82c93b8e2
children 650d81a313cb
line wrap: on
line diff
--- a/hgext/convert/hg.py	Fri Jun 10 11:43:38 2011 -0500
+++ b/hgext/convert/hg.py	Fri Jun 10 11:43:38 2011 -0500
@@ -112,7 +112,7 @@
             self.after()
             for pbranch, heads in missings.iteritems():
                 pbranchpath = os.path.join(self.path, pbranch)
-                prepo = hg.repository(self.ui, pbranchpath)
+                prepo = hg.peer(self.ui, {}, pbranchpath)
                 self.ui.note(_('pulling from %s into %s\n') % (pbranch, branch))
                 self.repo.pull(prepo, [prepo.lookup(h) for h in heads])
             self.before()