~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: 2009-01-06 17:15:20 UTC
  • mfrom: (3922.1.5 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090106171520-9pzjoqa7m74hvhht
(Adeodato Simo) Update patience_diff.unified_diff so that it doesn't
        add trailing whitespace when you don't supply datestamps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        ud[2] = ud[2].replace('-1,0', '-0,0')
100
100
    elif not newlines:
101
101
        ud[2] = ud[2].replace('+1,0', '+0,0')
102
 
    # work around for difflib emitting random spaces after the label
103
 
    ud[0] = ud[0][:-2] + '\n'
104
 
    ud[1] = ud[1][:-2] + '\n'
105
102
 
106
103
    for line in ud:
107
104
        to_file.write(line)