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