Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hg.py @ 5232:d3874a286b51
fix the dummy 00changelog.i not being copied on clone
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Fri, 31 Aug 2007 22:31:03 +0200 |
parents | 156f4c8a12aa |
children | aea35488ea66 |
comparison
equal
deleted
inserted
replaced
5215:74723744d8e0 | 5232:d3874a286b51 |
---|---|
167 if not os.path.exists(dest): | 167 if not os.path.exists(dest): |
168 os.mkdir(dest) | 168 os.mkdir(dest) |
169 dest_path = os.path.realpath(os.path.join(dest, ".hg")) | 169 dest_path = os.path.realpath(os.path.join(dest, ".hg")) |
170 os.mkdir(dest_path) | 170 os.mkdir(dest_path) |
171 if src_repo.spath != src_repo.path: | 171 if src_repo.spath != src_repo.path: |
172 # XXX racy | |
173 dummy_changelog = os.path.join(dest_path, "00changelog.i") | |
174 # copy the dummy changelog | |
175 force_copy(src_repo.join("00changelog.i"), dummy_changelog) | |
172 dest_store = os.path.join(dest_path, "store") | 176 dest_store = os.path.join(dest_path, "store") |
173 os.mkdir(dest_store) | 177 os.mkdir(dest_store) |
174 else: | 178 else: |
175 dest_store = dest_path | 179 dest_store = dest_path |
176 # copy the requires file | 180 # copy the requires file |