##// END OF EJS Templates
hg: fail upon copy/link errors while cloning locally
Patrick Mezard -
r5699:4cf5a495 default
parent child Browse files
Show More
@@ -164,11 +164,10 b' def clone(ui, source, dest=None, pull=Fa'
164 164
165 165 if copy:
166 166 def force_copy(src, dst):
167 try:
167 if not os.path.exists(src):
168 # Tolerate empty source repository and optional files
169 return
168 170 util.copyfiles(src, dst)
169 except OSError, inst:
170 if inst.errno != errno.ENOENT:
171 raise
172 171
173 172 src_store = os.path.realpath(src_repo.spath)
174 173 if not os.path.exists(dest):
General Comments 0
You need to be logged in to leave comments. Login now