##// END OF EJS Templates
don't create the .hg/data at init time
Benoit Boissinot -
r3713:8ae88ed2 default
parent child Browse files
Show More
@@ -156,11 +156,10 b' def clone(ui, source, dest=None, pull=Fa'
156 # we lock here to avoid premature writing to the target
156 # we lock here to avoid premature writing to the target
157 dest_lock = lock.lock(os.path.join(dest_path, ".hg", "lock"))
157 dest_lock = lock.lock(os.path.join(dest_path, ".hg", "lock"))
158
158
159 # we need to remove the (empty) data dir in dest so copyfiles
159 files = ("data",
160 # can do its work
160 "00manifest.d", "00manifest.i",
161 os.rmdir(os.path.join(dest_path, ".hg", "data"))
161 "00changelog.d", "00changelog.i")
162 files = "data 00manifest.d 00manifest.i 00changelog.d 00changelog.i"
162 for f in files:
163 for f in files.split():
164 src = os.path.join(source, ".hg", f)
163 src = os.path.join(source, ".hg", f)
165 dst = os.path.join(dest_path, ".hg", f)
164 dst = os.path.join(dest_path, ".hg", f)
166 try:
165 try:
@@ -37,7 +37,6 b' class localrepository(repo.repository):'
37 if not os.path.exists(path):
37 if not os.path.exists(path):
38 os.mkdir(path)
38 os.mkdir(path)
39 os.mkdir(self.path)
39 os.mkdir(self.path)
40 os.mkdir(self.join("data"))
41 else:
40 else:
42 raise repo.RepoError(_("repository %s not found") % path)
41 raise repo.RepoError(_("repository %s not found") % path)
43 elif create:
42 elif create:
@@ -5,5 +5,4 b' killed!'
5 transaction abort!
5 transaction abort!
6 rollback completed
6 rollback completed
7 00changelog.i
7 00changelog.i
8 data
9 journal.dirstate
8 journal.dirstate
@@ -56,6 +56,6 b' echo "# check names for repositories (cl'
56 for i in bundle file hg http https old-http ssh static-http " " "with space"; do
56 for i in bundle file hg http https old-http ssh static-http " " "with space"; do
57 echo "# hg init \"$i\""
57 echo "# hg init \"$i\""
58 hg init "$i"
58 hg init "$i"
59 test -d "$i" -a -d "$i/.hg" -a -d "$i/.hg/data" && echo "ok" || echo "failed"
59 test -d "$i" -a -d "$i/.hg" && echo "ok" || echo "failed"
60 done
60 done
61
61
General Comments 0
You need to be logged in to leave comments. Login now