Mercurial > kallithea
changeset 4013:d9a73bfc4107
use safe get on copy mode since for git we don't have this implemented
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 18 Jun 2013 15:55:24 +0200 |
parents | 55dbc440878b |
children | 7c0eff86b249 |
files | rhodecode/lib/diffs.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/diffs.py Tue Jun 18 02:06:01 2013 +0200 +++ b/rhodecode/lib/diffs.py Tue Jun 18 15:55:24 2013 +0200 @@ -392,7 +392,7 @@ stats['ops'][RENAMED_FILENODE] = ('file renamed from %s to %s' % (head['rename_from'], head['rename_to'])) # COPY - if head['copy_from'] and head['copy_to']: + if head.get('copy_from') and head.get('copy_to'): op = 'M' stats['binary'] = True stats['ops'][COPIED_FILENODE] = ('file copied from %s to %s'