Merge -stable heads stable
authorMatt Mackall <mpm@selenic.com>
Tue, 15 Dec 2009 10:44:10 -0600
branchstable
changeset 10074 ad5ef62b5a98
parent 10071 661980567246 (current diff)
parent 10068 8f14f749f471 (diff)
child 10076 649bb75b5386
child 10079 7f5a71946aaa
Merge -stable heads
--- a/mercurial/subrepo.py	Mon Dec 14 22:09:49 2009 +0100
+++ b/mercurial/subrepo.py	Tue Dec 15 10:44:10 2009 -0600
@@ -160,6 +160,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]