Bug 1746770 - "mach vendor rust" fails when crate has the directory name that uses space character. r=firefox-build-system-reviewers,mhentges

Differential Revision: https://phabricator.services.mozilla.com/D134241
This commit is contained in:
Makoto Kato
2021-12-21 01:26:21 +00:00
parent 8eb2a5e388
commit 8ccd98e2dc

View File

@@ -488,7 +488,7 @@ class HgRepository(Repository):
if _paths_equal(self.path, path):
raise CannotDeleteFromRootOfRepositoryException()
self._run("revert", path)
for f in self._run("st", "-un", path).split():
for f in self._run("st", "-un", path).splitlines():
if os.path.isfile(f):
os.remove(f)
else: