Changeset - d9a73bfc4107
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 12 years ago 2013-06-18 15:55:24
marcin@python-works.com
use safe get on copy mode since for git we don't have this implemented
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/diffs.py
Show inline comments
 
@@ -389,13 +389,13 @@ class DiffProcessor(object):
 
                      and head['rename_from'] != head['rename_to']):
 
                    op = 'M'
 
                    stats['binary'] = True
 
                    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'
 
                                        % (head['copy_from'], head['copy_to']))
 
                # FALL BACK: detect missed old style add or remove
 
                if op is None:
0 comments (0 inline, 0 general)