##// END OF EJS Templates
py3: use bytes.endswith() instead of bytes[n]
Yuya Nishihara -
r38611:21be76e0 default
parent child Browse files
Show More
@@ -2,6 +2,7 b' test-abort-checkin.t'
2 test-add.t
2 test-add.t
3 test-addremove-similar.t
3 test-addremove-similar.t
4 test-addremove.t
4 test-addremove.t
5 test-alias.t
5 test-amend-subrepo.t
6 test-amend-subrepo.t
6 test-amend.t
7 test-amend.t
7 test-ancestor.py
8 test-ancestor.py
@@ -226,7 +226,7 b' def canonpath(root, cwd, myname, auditor'
226 if cwd != root:
226 if cwd != root:
227 canonpath(root, root, myname, auditor)
227 canonpath(root, root, myname, auditor)
228 relpath = util.pathto(root, cwd, '')
228 relpath = util.pathto(root, cwd, '')
229 if relpath[-1] == pycompat.ossep:
229 if relpath.endswith(pycompat.ossep):
230 relpath = relpath[:-1]
230 relpath = relpath[:-1]
231 hint = (_("consider using '--cwd %s'") % relpath)
231 hint = (_("consider using '--cwd %s'") % relpath)
232 except error.Abort:
232 except error.Abort:
General Comments 0
You need to be logged in to leave comments. Login now