~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
436
436
    has_changes = 0
437
437
    for path, file_id, kind in delta.removed:
438
438
        has_changes = 1
439
 
        print >>to_file, '=== removed %s %r' % (kind, path.encode('utf8'))
 
439
        print >>to_file, "=== removed %s '%s'" % (kind, path.encode('utf8'))
440
440
        old_name = '%s%s\t%s' % (old_label, path,
441
441
                                 _patch_header_date(old_tree, file_id, path))
442
442
        new_name = '%s%s\t%s' % (new_label, path, EPOCH_DATE)
444
444
                                         new_name, None, None, to_file)
445
445
    for path, file_id, kind in delta.added:
446
446
        has_changes = 1
447
 
        print >>to_file, '=== added %s %r' % (kind, path.encode('utf8'))
 
447
        print >>to_file, "=== added %s '%s'" % (kind, path.encode('utf8'))
448
448
        old_name = '%s%s\t%s' % (old_label, path, EPOCH_DATE)
449
449
        new_name = '%s%s\t%s' % (new_label, path,
450
450
                                 _patch_header_date(new_tree, file_id, path))
455
455
         text_modified, meta_modified) in delta.renamed:
456
456
        has_changes = 1
457
457
        prop_str = get_prop_change(meta_modified)
458
 
        print >>to_file, '=== renamed %s %r => %r%s' % (
 
458
        print >>to_file, "=== renamed %s '%s' => %r%s" % (
459
459
                    kind, old_path.encode('utf8'),
460
460
                    new_path.encode('utf8'), prop_str)
461
461
        old_name = '%s%s\t%s' % (old_label, old_path,
470
470
    for path, file_id, kind, text_modified, meta_modified in delta.modified:
471
471
        has_changes = 1
472
472
        prop_str = get_prop_change(meta_modified)
473
 
        print >>to_file, '=== modified %s %r%s' % (kind, path.encode('utf8'), prop_str)
 
473
        print >>to_file, "=== modified %s '%s'%s" % (kind, path.encode('utf8'),
 
474
                                                     prop_str)
474
475
        # The file may be in a different location in the old tree (because
475
476
        # the containing dir was renamed, but the file itself was not)
476
477
        old_path = old_tree.id2path(file_id)