Mercurial > kallithea
diff kallithea/controllers/changeset.py @ 6192:72acb38da217
diff: minor cleanups
More consistency and preparing for later changes.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 06 Sep 2016 00:51:18 +0200 |
parents | 0bac887ea148 |
children | dc4cb1d4e084 |
line wrap: on
line diff
--- a/kallithea/controllers/changeset.py Tue Sep 06 00:51:18 2016 +0200 +++ b/kallithea/controllers/changeset.py Tue Sep 06 00:51:18 2016 +0200 @@ -293,10 +293,11 @@ st = f['stats'] c.lines_added += st['added'] c.lines_deleted += st['deleted'] - fid = h.FID(changeset.raw_id, f['filename']) + filename = f['filename'] + fid = h.FID(changeset.raw_id, filename) diff = diff_processor.as_html(enable_comments=enable_comments, parsed_lines=[f]) - cs_changes[fid] = [cs1, cs2, f['operation'], f['filename'], + cs_changes[fid] = [cs1, cs2, f['operation'], filename, diff, st] else: # downloads/raw we only need RAW diff nothing else