##// END OF EJS Templates
Handle hg under /
Arun Sharma -
r1566:8befbb4e default
parent child Browse files
Show More
@@ -175,7 +175,10 b' def pathto(n1, n2):'
175
175
176 def canonpath(root, cwd, myname):
176 def canonpath(root, cwd, myname):
177 """return the canonical path of myname, given cwd and root"""
177 """return the canonical path of myname, given cwd and root"""
178 rootsep = root + os.sep
178 if root == os.sep:
179 rootsep = os.sep
180 else:
181 rootsep = root + os.sep
179 name = myname
182 name = myname
180 if not name.startswith(os.sep):
183 if not name.startswith(os.sep):
181 name = os.path.join(root, cwd, name)
184 name = os.path.join(root, cwd, name)
General Comments 0
You need to be logged in to leave comments. Login now