Merge lp:~jelmer/bzrtools/colordiff into lp:bzrtools

Proposed by Jelmer Vernooij
Status: Merged
Merged at revision: 767
Proposed branch: lp:~jelmer/bzrtools/colordiff
Merge into: lp:bzrtools
Diff against target: 14 lines (+4/-0)
1 file modified
colordiff.py (+4/-0)
To merge this branch: bzr merge lp:~jelmer/bzrtools/colordiff
Reviewer Review Type Date Requested Status
Aaron Bentley Pending
Review via email: mp+44117@code.launchpad.net

Description of the change

This adds DiffWriter.writelines, required for "bzr cdiff --git" (bug 691671)

To post a comment you must log in.
Revision history for this message
Aaron Bentley (abentley) wrote :

--git doesn't seem to work anyway.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

On Wed, 2011-04-27 at 00:22 +0000, Aaron Bentley wrote:
> --git doesn't seem to work anyway.
Sorry, it's "bzr diff --format=git" now. It requires bzr-git to be
installed.

Cheers,

Jelmer

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'colordiff.py'
2--- colordiff.py 2008-11-23 21:03:13 +0000
3+++ colordiff.py 2010-12-18 00:23:03 +0000
4@@ -130,6 +130,10 @@
5 self.chunks = []
6 self.chunks = [newstuff[-1]]
7
8+ def writelines(self, lines):
9+ for line in lines:
10+ self.write(line)
11+
12 def _writeline(self, line):
13 item = self.lp.parse_line(line)
14 bad_ws_match = None

Subscribers

People subscribed via source and target branches