mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
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:
parent
319a2387c2
commit
d8433616fa
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user