mercurial/util.py
changeset 3669 48768b1ab23c
parent 3629 4cfb72bcb978
child 3673 eb0b4a2d70a9
--- a/mercurial/util.py	Wed Nov 15 17:56:57 2006 -0200
+++ b/mercurial/util.py	Wed Nov 15 18:56:47 2006 -0200
@@ -207,9 +207,12 @@
 
 def pathto(n1, n2):
     '''return the relative path from one place to another.
-    this returns a path in the form used by the local filesystem, not hg.'''
+    n1 should use os.sep to separate directories
+    n2 should use "/" to separate directories
+    returns an os.sep-separated path.
+    '''
     if not n1: return localpath(n2)
-    a, b = n1.split('/'), n2.split('/')
+    a, b = n1.split(os.sep), n2.split('/')
     a.reverse()
     b.reverse()
     while a and b and a[-1] == b[-1]: