Show More
@@ -5,9 +5,9 b' import difflib' | |||
|
5 | 5 | import re |
|
6 | 6 | from optparse import OptionParser |
|
7 | 7 | from mercurial.bdiff import bdiff, blocks |
|
8 | from mercurial.mdiff import bunidiff | |
|
8 | from mercurial.mdiff import bunidiff, diffopts | |
|
9 | 9 | |
|
10 |
VERSION="0. |
|
|
10 | VERSION="0.3" | |
|
11 | 11 | usage = "usage: %prog [options] file1 file2" |
|
12 | 12 | parser = OptionParser(usage=usage) |
|
13 | 13 | |
@@ -57,9 +57,10 b' def diff_files(file1, file2):' | |||
|
57 | 57 | if options.difflib: |
|
58 | 58 | l = difflib.unified_diff(l1, l2, file1, file2) |
|
59 | 59 | else: |
|
60 |
l = bunidiff(t1, t2, l1, l2, file1, file2, |
|
|
60 | l = bunidiff(t1, t2, l1, l2, file1, file2, | |
|
61 | diffopts(context=options.context, | |
|
61 | 62 | showfunc=options.show_c_function, |
|
62 | ignorews=options.ignore_all_space) | |
|
63 | ignorews=options.ignore_all_space)) | |
|
63 | 64 | for x in l: |
|
64 | 65 | if x[-1] != '\n': |
|
65 | 66 | x += "\n\ No newline at end of file\n" |
General Comments 0
You need to be logged in to leave comments.
Login now