~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to patchsource.py

  • Committer: Aaron Bentley
  • Date: 2006-12-12 16:50:31 UTC
  • Revision ID: abentley@panoramicfeedback.com-20061212165031-51w8gjy1eps1vnw0
update NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import re
2
 
 
3
1
from bzrlib import patches
4
2
 
5
 
from bzrlib.plugins.bzrtools import errors
6
 
 
7
3
class PatchSource(object):
8
4
    def __iter__(self):
9
5
        def iterator(obj):
55
51
 
56
52
        show_diff_trees(self.old_tree, self.tree, f, self.file_list,
57
53
                        old_label='', new_label='')
58
 
        if re.search('Binary files .* differ', f.getvalue()):
59
 
            raise errors.ChangedBinaryFiles()
 
54
 
60
55
        f.seek(0)
61
56
        return f.readlines()