comparison mercurial/util.py @ 2278:3711e23ab10a

Make hg status work for repositories in root directory on windows (issue 228)
author Manpreet Singh <junkblocker@yahoo.com>
date Sat, 13 May 2006 23:00:05 -0700
parents 90b122730d32
children 09ed44225571
comparison
equal deleted inserted replaced
2276:766c3c852786 2278:3711e23ab10a
211 rootsep = root + os.sep 211 rootsep = root + os.sep
212 name = myname 212 name = myname
213 if not os.path.isabs(name): 213 if not os.path.isabs(name):
214 name = os.path.join(root, cwd, name) 214 name = os.path.join(root, cwd, name)
215 name = os.path.normpath(name) 215 name = os.path.normpath(name)
216 if name.startswith(rootsep): 216 if name != rootsep and name.startswith(rootsep):
217 name = name[len(rootsep):] 217 name = name[len(rootsep):]
218 audit_path(name) 218 audit_path(name)
219 return pconvert(name) 219 return pconvert(name)
220 elif name == root: 220 elif name == root:
221 return '' 221 return ''