Mercurial > hg-stable
changeset 10074:ad5ef62b5a98 stable
Merge -stable heads
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 15 Dec 2009 10:44:10 -0600 |
parents | 661980567246 (current diff) 8f14f749f471 (diff) |
children | 649bb75b5386 7f5a71946aaa |
files | |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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]