Changeset - 1e328a842d05
[Not reviewed]
0 1 0
Branko Majic (branko) - 4 years ago 2020-06-29 04:18:27
branko@majic.rs
Noticket: Fixed the changed/added/removed file tracking (wrong indexes were used).
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general) First comment
hooks/thebuggenie_hg_remote.py
Show inline comments
 
@@ -131,11 +131,11 @@ def extract_report(repo, context):
 
    # line, first column being type of change, second column being filename.
 
    files_changed_status = []
 
    for f in files_changed[0]:
 
        files_changed_status.append("A %s" % f)
 
        files_changed_status.append("U %s" % f)
 
    for f in files_changed[1]:
 
        files_changed_status.append("D %s" % f)
 
        files_changed_status.append("A %s" % f)
 
    for f in files_changed[2]:
 
        files_changed_status.append("U %s" % f)
 
        files_changed_status.append("D %s" % f)
 
    report['changed'] = "\n".join(files_changed_status)
 

	
 
    # Finally return the report.
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now