# HG changeset patch # User Matt Mackall # Date 1260824522 21600 # Node ID 606b563e41db777c889aac72ae114aad4282de30 # Parent fd6729805f44c0686abf0a4d59449284b2ff7dd6# Parent 8f14f749f47113da7091d9a78c8d35d05a1b3d1d Merge with -stable diff -r fd6729805f44 -r 606b563e41db mercurial/subrepo.py --- a/mercurial/subrepo.py Mon Dec 14 00:26:28 2009 +0100 +++ b/mercurial/subrepo.py Mon Dec 14 15:02:02 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]