зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1514341 - mach clang-format - fix path on windows. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D14605 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
33c198d620
Коммит
d471aefa7d
|
@ -9,6 +9,7 @@ import hashlib
|
|||
import itertools
|
||||
import json
|
||||
import logging
|
||||
import ntpath
|
||||
import operator
|
||||
import os
|
||||
import re
|
||||
|
@ -2856,7 +2857,7 @@ class StaticAnalysis(MachCommandBase):
|
|||
# and run clang-format on the temp directory
|
||||
# and show the diff
|
||||
original_path = l[0]
|
||||
local_path = original_path.replace(self.topsrcdir, ".")
|
||||
local_path = ntpath.basename(original_path)
|
||||
target_file = os.path.join(tmpdir, local_path)
|
||||
faketmpdir = os.path.dirname(target_file)
|
||||
if not os.path.isdir(faketmpdir):
|
||||
|
|
Загрузка…
Ссылка в новой задаче