hg clone stored path fix

# HG changeset patch
# User Mikael Berthe <mikael@lilotux.net>
# Node ID a08808d8ffd811c1174216c598da5c27d20bc2c9
# Parent  0bda45294416406d4c6fbaf1cb643dd0bf6b3a16
hg clone stored path fix

The abspath() has been lost in changeset 634 (ed741e6e5a5e).
This commit is contained in:
Mikael Berthe 2005-07-10 16:15:20 -08:00
parent 899bc83dfc
commit 6c5d37b7f0

View File

@ -387,6 +387,9 @@ def clone(ui, source, dest = None, **opts):
source = ui.expandpath(source)
other = hg.repository(ui, source)
if other.dev() != -1:
abspath = os.path.abspath(source)
if other.dev() != -1 and os.stat(dest).st_dev == other.dev():
ui.note("cloning by hardlink\n")
util.system("cp -al '%s'/.hg '%s'/.hg" % (source, dest))