Mercurial > hg
comparison mercurial/dirstate.py @ 30304:ba2c04059317
py3: use pycompat.ossep at certain places
Certain instances of os.sep has been converted to pycompat.ossep where it was
sure to use bytes only. There are more such instances which needs some more
attention and will get surely.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 06 Nov 2016 04:10:33 +0530 |
parents | ad56071b37d4 |
children | 20a42325fdef |
comparison
equal
deleted
inserted
replaced
30303:ad40d307a9f0 | 30304:ba2c04059317 |
---|---|
19 error, | 19 error, |
20 match as matchmod, | 20 match as matchmod, |
21 osutil, | 21 osutil, |
22 parsers, | 22 parsers, |
23 pathutil, | 23 pathutil, |
24 pycompat, | |
24 scmutil, | 25 scmutil, |
25 util, | 26 util, |
26 ) | 27 ) |
27 | 28 |
28 propertycache = util.propertycache | 29 propertycache = util.propertycache |
213 pats = ['include:%s' % f for f in files] | 214 pats = ['include:%s' % f for f in files] |
214 return matchmod.match(self._root, '', [], pats, warn=self._ui.warn) | 215 return matchmod.match(self._root, '', [], pats, warn=self._ui.warn) |
215 | 216 |
216 @propertycache | 217 @propertycache |
217 def _slash(self): | 218 def _slash(self): |
218 return self._ui.configbool('ui', 'slash') and os.sep != '/' | 219 return self._ui.configbool('ui', 'slash') and pycompat.ossep != '/' |
219 | 220 |
220 @propertycache | 221 @propertycache |
221 def _checklink(self): | 222 def _checklink(self): |
222 return util.checklink(self._root) | 223 return util.checklink(self._root) |
223 | 224 |