Mercurial > public > mercurial-scm > hg
diff mercurial/dirstate.py @ 30614:cfe66dcf45c0
py3: replace os.sep with pycompat.ossep (part 2 of 4)
This part also replaces some chunks of os.sep with pycompat.ossep.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 17 Dec 2016 20:02:50 +0530 |
parents | 20a42325fdef |
children | ad15646dc61c |
line wrap: on
line diff
--- a/mercurial/dirstate.py Sat Dec 17 19:56:30 2016 +0530 +++ b/mercurial/dirstate.py Sat Dec 17 20:02:50 2016 +0530 @@ -286,7 +286,7 @@ # self._root ends with a path separator if self._root is '/' or 'C:\' rootsep = self._root if not util.endswithsep(rootsep): - rootsep += os.sep + rootsep += pycompat.ossep if cwd.startswith(rootsep): return cwd[len(rootsep):] else: