diff mercurial/localrepo.py @ 11640:c3e8ab80ee90 stable

init: create target directory recursively Subrepos with relative paths must often be cloned to locations deep in the directory structure. This allows clone over ssh (init+push) work.
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 21 Jul 2010 19:29:57 +0200
parents d3c3e2fdeb0c
children c4f6f0a1bd5a a4fbbe0fbc38
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Jul 21 17:51:37 2010 +0200
+++ b/mercurial/localrepo.py	Wed Jul 21 19:29:57 2010 +0200
@@ -42,7 +42,7 @@
         if not os.path.isdir(self.path):
             if create:
                 if not os.path.exists(path):
-                    os.mkdir(path)
+                    util.makedirs(path)
                 os.mkdir(self.path)
                 requirements = ["revlogv1"]
                 if self.ui.configbool('format', 'usestore', True):