[Pkg-bazaar-commits] ./bzr/unstable r643: - fix redirection of messages to file in diff

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:20:34 UTC 2009


------------------------------------------------------------
revno: 643
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Fri 2005-06-10 16:22:11 +1000
message:
  - fix redirection of messages to file in diff
    (from Johan Rydberg)
modified:
  bzrlib/diff.py
-------------- next part --------------
=== modified file 'bzrlib/diff.py'
--- a/bzrlib/diff.py	2005-06-10 01:47:12 +0000
+++ b/bzrlib/diff.py	2005-06-10 06:22:11 +0000
@@ -209,7 +209,7 @@
                           specific_files=specific_files)
 
     for path, file_id, kind in delta.removed:
-        print '*** removed %s %r' % (kind, path)
+        print >>to_file, '*** removed %s %r' % (kind, path)
         if kind == 'file':
             diff_file(old_label + path,
                       old_tree.get_file(file_id).readlines(),
@@ -218,7 +218,7 @@
                       to_file)
 
     for path, file_id, kind in delta.added:
-        print '*** added %s %r' % (kind, path)
+        print >>to_file, '*** added %s %r' % (kind, path)
         if kind == 'file':
             diff_file(DEVNULL,
                       [],
@@ -227,7 +227,7 @@
                       to_file)
 
     for old_path, new_path, file_id, kind, text_modified in delta.renamed:
-        print '*** renamed %s %r => %r' % (kind, old_path, new_path)
+        print >>to_file, '*** renamed %s %r => %r' % (kind, old_path, new_path)
         if text_modified:
             diff_file(old_label + old_path,
                       old_tree.get_file(file_id).readlines(),
@@ -236,7 +236,7 @@
                       to_file)
 
     for path, file_id, kind in delta.modified:
-        print '*** modified %s %r' % (kind, path)
+        print >>to_file, '*** modified %s %r' % (kind, path)
         if kind == 'file':
             diff_file(old_label + path,
                       old_tree.get_file(file_id).readlines(),



More information about the Pkg-bazaar-commits mailing list