~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-05-31 05:56:58 UTC
  • mfrom: (1711.2.28 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060531055658-2fa78bd860286282
[patch] Lalo Martins: add python path information to bzr --version

Show diffs side-by-side

added added

removed removed

Lines of Context:
290
290
    has_changes = 0
291
291
    for path, file_id, kind in delta.removed:
292
292
        has_changes = 1
293
 
        print >>to_file, '=== removed %s %r' % (kind, path)
 
293
        print >>to_file, '=== removed %s %r' % (kind, path.encode('utf8'))
294
294
        old_tree.inventory[file_id].diff(diff_file, old_label + path, old_tree,
295
295
                                         DEVNULL, None, None, to_file)
296
296
    for path, file_id, kind in delta.added:
297
297
        has_changes = 1
298
 
        print >>to_file, '=== added %s %r' % (kind, path)
 
298
        print >>to_file, '=== added %s %r' % (kind, path.encode('utf8'))
299
299
        new_tree.inventory[file_id].diff(diff_file, new_label + path, new_tree,
300
300
                                         DEVNULL, None, None, to_file, 
301
301
                                         reverse=True)
304
304
        has_changes = 1
305
305
        prop_str = get_prop_change(meta_modified)
306
306
        print >>to_file, '=== renamed %s %r => %r%s' % (
307
 
                    kind, old_path, new_path, prop_str)
 
307
                    kind, old_path.encode('utf8'),
 
308
                    new_path.encode('utf8'), prop_str)
308
309
        _maybe_diff_file_or_symlink(old_label, old_path, old_tree, file_id,
309
310
                                    new_label, new_path, new_tree,
310
311
                                    text_modified, kind, to_file, diff_file)
311
312
    for path, file_id, kind, text_modified, meta_modified in delta.modified:
312
313
        has_changes = 1
313
314
        prop_str = get_prop_change(meta_modified)
314
 
        print >>to_file, '=== modified %s %r%s' % (kind, path, prop_str)
 
315
        print >>to_file, '=== modified %s %r%s' % (kind, path.encode('utf8'), prop_str)
315
316
        if text_modified:
316
317
            _maybe_diff_file_or_symlink(old_label, path, old_tree, file_id,
317
318
                                        new_label, path, new_tree,