mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
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:
parent
899bc83dfc
commit
6c5d37b7f0
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user