diff mercurial/subrepo.py @ 30615:bb77654dc7ae

py3: replace os.sep with pycompat.ossep (part 3 of 4)
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 17 Dec 2016 20:14:24 +0530
parents a145161debed
children a150173da1c1
line wrap: on
line diff
--- a/mercurial/subrepo.py	Sat Dec 17 20:02:50 2016 +0530
+++ b/mercurial/subrepo.py	Sat Dec 17 20:14:24 2016 +0530
@@ -31,6 +31,7 @@
     node,
     pathutil,
     phases,
+    pycompat,
     scmutil,
     util,
 )
@@ -1172,7 +1173,7 @@
                 changes.append(path)
         for path in changes:
             for ext in externals:
-                if path == ext or path.startswith(ext + os.sep):
+                if path == ext or path.startswith(ext + pycompat.ossep):
                     return True, True, bool(missing)
         return bool(changes), False, bool(missing)