Mercurial > hg-stable
changeset 10075:4c632e242e2a
Merge with crew
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 15 Dec 2009 10:44:38 -0600 |
parents | 25919ebaba01 (current diff) 606b563e41db (diff) |
children | 649bb75b5386 |
files | |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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]