Merge with crew
authorMatt Mackall <mpm@selenic.com>
Tue, 15 Dec 2009 10:44:38 -0600
changeset 10075 4c632e242e2a
parent 10073 25919ebaba01 (current diff)
parent 10069 606b563e41db (diff)
child 10076 649bb75b5386
Merge with crew
--- a/mercurial/subrepo.py	Mon Dec 14 23:14:50 2009 +0100
+++ b/mercurial/subrepo.py	Tue Dec 15 10:44:38 2009 -0600
@@ -175,6 +175,9 @@
         else:
             util.makedirs(root)
             self._repo = hg.repository(r.ui, root, create=True)
+            f = file(os.path.join(root, '.hg', 'hgrc'), 'w')
+            f.write('[paths]\ndefault = %s\n' % state[0])
+            f.close()
         self._repo._subparent = r
         self._repo._subsource = state[0]