mercurial/localrepo.py
changeset 2549 e1831f06eef1
parent 2491 ffde9eb23f59
child 2551 764a54eb8c5a
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -74,6 +74,8 @@ class localrepository(object):
         self.transhandle = None
 
         if create:
+	    if not os.path.exists(path):
+		os.mkdir(path)
             os.mkdir(self.path)
             os.mkdir(self.join("data"))