comparison mercurial/hg.py @ 9984:439d7ea6fe3a stable 1.4.1

share: fix interaction with clone
author Matt Mackall <mpm@selenic.com>
date Tue, 01 Dec 2009 19:28:15 -0600
parents 75520c24feda
children f5e46dfb38c7
comparison
equal deleted inserted replaced
9981:1bf8b870efb4 9984:439d7ea6fe3a
253 raise util.Abort(_("destination '%s' already exists") 253 raise util.Abort(_("destination '%s' already exists")
254 % dest) 254 % dest)
255 raise 255 raise
256 256
257 for f in src_repo.store.copylist(): 257 for f in src_repo.store.copylist():
258 src = os.path.join(src_repo.path, f) 258 src = os.path.join(src_repo.sharedpath, f)
259 dst = os.path.join(dest_path, f) 259 dst = os.path.join(dest_path, f)
260 dstbase = os.path.dirname(dst) 260 dstbase = os.path.dirname(dst)
261 if dstbase and not os.path.exists(dstbase): 261 if dstbase and not os.path.exists(dstbase):
262 os.mkdir(dstbase) 262 os.mkdir(dstbase)
263 if os.path.exists(src): 263 if os.path.exists(src):