Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 5277:a32a8e50d233
merge with crew
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Fri, 31 Aug 2007 23:15:44 +0200 |
parents | 5517aa5aafb0 aea35488ea66 |
children | 9e209193f18d 3b96cefc1b2b |
comparison
equal
deleted
inserted
replaced
5276:694eb9ccb54d | 5277:a32a8e50d233 |
---|---|
174 if not os.path.exists(dest): | 174 if not os.path.exists(dest): |
175 os.mkdir(dest) | 175 os.mkdir(dest) |
176 dest_path = os.path.realpath(os.path.join(dest, ".hg")) | 176 dest_path = os.path.realpath(os.path.join(dest, ".hg")) |
177 os.mkdir(dest_path) | 177 os.mkdir(dest_path) |
178 if src_repo.spath != src_repo.path: | 178 if src_repo.spath != src_repo.path: |
179 # XXX racy | |
180 dummy_changelog = os.path.join(dest_path, "00changelog.i") | |
181 # copy the dummy changelog | |
182 force_copy(src_repo.join("00changelog.i"), dummy_changelog) | |
179 dest_store = os.path.join(dest_path, "store") | 183 dest_store = os.path.join(dest_path, "store") |
180 os.mkdir(dest_store) | 184 os.mkdir(dest_store) |
181 else: | 185 else: |
182 dest_store = dest_path | 186 dest_store = dest_path |
183 # copy the requires file | 187 # copy the requires file |