Skip to content

Commit 0af9072

Browse files
committed
f
1 parent dd0bdee commit 0af9072

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/compare_and_fix_refs.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,12 @@ def main():
125125
print(f" ❌ Error fixing refs in {rel_with_src}: {e}")
126126

127127
# Check for files that exist in master refs but not in current branch
128+
unexisted_files = 0
128129
for master_file_rel in master_refs.keys():
129130
if master_file_rel not in current_files:
130131
rel_with_src = f"{SRC_DIR.name}/{master_file_rel}"
131132
print(f"🗑️ {rel_with_src} (existed in master but not in current one)")
132-
files_with_differences += 1
133+
unexisted_files += 1
133134
unmatched_files.append(rel_with_src)
134135

135136
# Save unmatched files to specified path if requested
@@ -151,11 +152,12 @@ def main():
151152
print(f"� No unmatched files found. Created empty file: {unmatched_paths_file}")
152153
except Exception as e:
153154
print(f"❌ Error creating empty unmatched paths file {args.files_unmatched_paths}: {e}")
154-
155-
print(f"\n�📈 SUMMARY:")
155+
156+
print(f"\n SUMMARY:")
156157
print(f" Files processed: {files_processed}")
157-
print(f" Files with differences: {files_with_differences}")
158+
print(f" Files with different refs: {files_with_differences}")
158159
print(f" Files modified: {files_modified}")
160+
print(f" Non existing files: {unexisted_files}")
159161
if unmatched_files:
160162
print(f" Unmatched files: {len(unmatched_files)}")
161163

0 commit comments

Comments
 (0)