diff mercurial/commands.py @ 675:49de76abc4da

hg clone stored path fix # HG changeset patch # User Mikael Berthe <mikael@lilotux.net> # Node ID a08808d8ffd811c1174216c598da5c27d20bc2c9 # Parent b3bba126b04ab2f24274a1bcf5a224c6317c8e0d hg clone stored path fix The abspath() has been lost in changeset 634 (da5378d39269).
author Mikael Berthe <mikael@lilotux.net>
date Sun, 10 Jul 2005 16:15:20 -0800
parents 6513ba7d858a
children 0cfc5966b2c2
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Jul 10 16:14:56 2005 -0800
+++ b/mercurial/commands.py	Sun Jul 10 16:15:20 2005 -0800
@@ -387,6 +387,9 @@
     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))