equal
deleted
inserted
replaced
384 d = dircleanup(dest) |
384 d = dircleanup(dest) |
385 link = 0 |
385 link = 0 |
386 abspath = source |
386 abspath = source |
387 source = ui.expandpath(source) |
387 source = ui.expandpath(source) |
388 other = hg.repository(ui, source) |
388 other = hg.repository(ui, source) |
|
389 |
|
390 if other.dev() != -1: |
|
391 abspath = os.path.abspath(source) |
389 |
392 |
390 if other.dev() != -1 and os.stat(dest).st_dev == other.dev(): |
393 if other.dev() != -1 and os.stat(dest).st_dev == other.dev(): |
391 ui.note("cloning by hardlink\n") |
394 ui.note("cloning by hardlink\n") |
392 util.system("cp -al '%s'/.hg '%s'/.hg" % (source, dest)) |
395 util.system("cp -al '%s'/.hg '%s'/.hg" % (source, dest)) |
393 try: |
396 try: |