Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
11639:a0c5f531daab | 11640:c3e8ab80ee90 |
---|---|
40 pass | 40 pass |
41 | 41 |
42 if not os.path.isdir(self.path): | 42 if not os.path.isdir(self.path): |
43 if create: | 43 if create: |
44 if not os.path.exists(path): | 44 if not os.path.exists(path): |
45 os.mkdir(path) | 45 util.makedirs(path) |
46 os.mkdir(self.path) | 46 os.mkdir(self.path) |
47 requirements = ["revlogv1"] | 47 requirements = ["revlogv1"] |
48 if self.ui.configbool('format', 'usestore', True): | 48 if self.ui.configbool('format', 'usestore', True): |
49 os.mkdir(os.path.join(self.path, "store")) | 49 os.mkdir(os.path.join(self.path, "store")) |
50 requirements.append("store") | 50 requirements.append("store") |