Bug 1815260 - Always use slash as path separator for mercurial command parameter in mach esmify command. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D171211
This commit is contained in:
Tooru Fujisawa 2023-02-28 17:04:03 +00:00
parent 319a2387c2
commit d8433616fa

View File

@ -183,6 +183,9 @@ class HgUtils(VCSUtils):
def find_jsms(self, path):
jsms = []
# NOTE: `set:glob:` syntax does not accept backslash on windows.
path = path_sep_from_native(path)
cmd = ["hg", "files", f'set:glob:"{path}/**/*.jsm"']
for line in self.run(cmd):
jsm = pathlib.Path(line)
@ -206,6 +209,9 @@ class HgUtils(VCSUtils):
def find_all_jss(self, path):
jss = []
# NOTE: `set:glob:` syntax does not accept backslash on windows.
path = path_sep_from_native(path)
cmd = [
"hg",
"files",