# HG changeset patch # User Yuya Nishihara # Date 1509179032 -32400 # Node ID 3423f7e2d28765f74f7dd9dfb07aaa36d9c0d766 # Parent 2a774cae3a037df3e8aedcb536b52fd60d83b1a9 statichttprepo: do not use platform path separator to build a URL It wouldn't work between Windows client and Unix server. diff -r 2a774cae3a03 -r 3423f7e2d287 mercurial/statichttprepo.py --- a/mercurial/statichttprepo.py Tue Oct 24 11:15:30 2017 -0700 +++ b/mercurial/statichttprepo.py Sat Oct 28 17:23:52 2017 +0900 @@ -10,7 +10,6 @@ from __future__ import absolute_import import errno -import os from .i18n import _ from . import ( @@ -20,6 +19,7 @@ localrepo, manifest, namespaces, + pathutil, scmutil, store, url, @@ -99,7 +99,7 @@ def join(self, path): if path: - return os.path.join(self.base, path) + return pathutil.join(self.base, path) else: return self.base