Mercurial > hg-stable
changeset 10069:606b563e41db
Merge with -stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 14 Dec 2009 15:02:02 -0600 |
parents | fd6729805f44 (current diff) 8f14f749f471 (diff) |
children | 4c632e242e2a |
files | mercurial/subrepo.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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]