[cig-commits] commit: fcloning to remote SSH repositories works again.

Mercurial hg at geodynamics.org
Mon Nov 24 11:27:18 PST 2008


changeset:   81:f2e41cfb11c1
user:        Simon Law <simon at akoha.org>
date:        Tue Jan 15 17:06:57 2008 -0500
files:       forest.py
description:
fcloning to remote SSH repositories works again.


diff -r 7403cc6df41c -r f2e41cfb11c1 forest.py
--- a/forest.py	Wed Dec 26 15:38:56 2007 +0100
+++ b/forest.py	Tue Jan 15 17:06:57 2008 -0500
@@ -802,7 +802,10 @@ def clone(ui, source, dest=None, **opts)
     if islocalsrc:
         source = os.path.abspath(urltopath(source))
     if dest:
-        dest = os.path.normpath(dest)
+        if hg.islocal(dest):
+            dest = os.path.normpath(dest)
+        else:
+            pass
     else:
         dest = hg.defaultdest(source)
     toprepo = hg.repository(ui, source)



More information about the CIG-COMMITS mailing list