##// END OF EJS Templates
hg init: when hardlinking, remove dirstate...
mpm@selenic.com -
r300:d3400605 default
parent child Browse files
Show More
@@ -306,6 +306,9 b' def init(ui, source=None):'
306 if link:
306 if link:
307 ui.debug("copying by hardlink\n")
307 ui.debug("copying by hardlink\n")
308 os.system("cp -al %s/.hg .hg" % source)
308 os.system("cp -al %s/.hg .hg" % source)
309 try:
310 os.remove(".hg/dirstate")
311 except: pass
309 else:
312 else:
310 repo = hg.repository(ui, ".", create=1)
313 repo = hg.repository(ui, ".", create=1)
311 other = hg.repository(ui, source)
314 other = hg.repository(ui, source)
General Comments 0
You need to be logged in to leave comments. Login now