Skip to content

Commit 46b487e

Browse files
Switch code section check to working copy rather than trunk (#49)
1 parent 16dd84b commit 46b487e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

suite_report.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ def export_file(repo_url, fname, outname="~/temp.txt"):
884884
fname = fname.lstrip("/")
885885
outname = os.path.expanduser(outname)
886886

887-
# Try 5 times, if all fail then use working copy version
887+
# Try 5 times
888888
for _ in range(5):
889889
try:
890890
subproc = "fcm export -q {}/{} {} --force".format(
@@ -1147,9 +1147,13 @@ def get_code_owners(self, code_owners):
11471147
section = "stash"
11481148
else:
11491149
# Find area of files in other directories
1150-
file_path = self.export_file("fcm:um.xm_tr", fpath)
1150+
file_path = self.export_file(repo_loc, fpath)
11511151
if file_path is None:
1152-
file_path = ""
1152+
# Couldn't check out working copy file - deleted? Use trunk instead
1153+
file_path = self.export_file("fcm:um.xm_tr", fpath)
1154+
if file_path is None:
1155+
print('[WARN] Unable to establish code section for file: ', fle)
1156+
file_path = ""
11531157

11541158
try:
11551159
with open(file_path, "r") as inp_file:

0 commit comments

Comments
 (0)