mercurial/pathutil.py
changeset 36647 052351e3e1cd
parent 34980 705d0f2bb677
child 36649 d3b893ec5f08
--- a/mercurial/pathutil.py	Sat Mar 03 14:21:47 2018 -0500
+++ b/mercurial/pathutil.py	Sat Mar 03 12:34:35 2018 -0500
@@ -65,7 +65,7 @@
         parts = util.splitpath(path)
         if (os.path.splitdrive(path)[0]
             or _lowerclean(parts[0]) in ('.hg', '.hg.', '')
-            or os.pardir in parts):
+            or pycompat.ospardir in parts):
             raise error.Abort(_("path contains illegal component: %s") % path)
         # Windows shortname aliases
         for p in parts: