# HG changeset patch # User Matt Mackall # Date 1260895478 21600 # Node ID 4c632e242e2a78d44146f0458a7a40c5be6ee501 # Parent 25919ebaba017e4395709a8c6d96f2b7370f6d02# Parent 606b563e41db777c889aac72ae114aad4282de30 Merge with crew diff -r 25919ebaba01 -r 4c632e242e2a mercurial/subrepo.py --- 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]