hg clone stored path
Mikael Berthe
mikael.berthe at lilotux.net
Sat Jul 9 11:18:41 CDT 2005
It looks like the stored path for local repositories is not absolute
anymore. This patch should fix it.
--
MiKael
-------------- next part --------------
# HG changeset patch
# User Mikael Berthe <mikael at lilotux.net>
# Node ID a08808d8ffd811c1174216c598da5c27d20bc2c9
# Parent b3bba126b04ab2f24274a1bcf5a224c6317c8e0d
hg clone stored path fix
The abspath() has been lost in changeset 634 (da5378d39269).
diff -r b3bba126b04a -r a08808d8ffd8 mercurial/commands.py
--- a/mercurial/commands.py Sat Jul 9 02:10:57 2005
+++ b/mercurial/commands.py Sat Jul 9 16:10:14 2005
@@ -386,6 +386,9 @@
abspath = source
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")
More information about the Mercurial
mailing list