[PATCH] diff info to file

Johan Rydberg jrydberg at gnu.org
Tue Jun 7 13:18:13 BST 2005


Hi,

To get ViewCVS diff to work without causing a internal server 
error I need to apply this patch.  Is there a chance that it 
can make it into the official repo?

~j

===File ~/share/patches/bzr-diff-file.patch=================
*** modified file 'bzrlib/diff.py'
--- bzrlib/diff.py 
+++ bzrlib/diff.py 
@@ -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 bazaar mailing list