# HG changeset patch # User Thomas Arendsen Hein # Date 1160938598 -7200 # Node ID 0f308690bda8f51730de5ce3e9aadae79bf80c97 # Parent f0415b61949dd36637161b73b9396315aa865d61 Fixed contrib/hgdiff script to pass diffopts in the new format. diff -r f0415b61949d -r 0f308690bda8 contrib/hgdiff --- a/contrib/hgdiff Sun Oct 15 16:35:47 2006 +0200 +++ b/contrib/hgdiff Sun Oct 15 20:56:38 2006 +0200 @@ -5,9 +5,9 @@ import re from optparse import OptionParser from mercurial.bdiff import bdiff, blocks -from mercurial.mdiff import bunidiff +from mercurial.mdiff import bunidiff, diffopts -VERSION="0.2" +VERSION="0.3" usage = "usage: %prog [options] file1 file2" parser = OptionParser(usage=usage) @@ -57,9 +57,10 @@ if options.difflib: l = difflib.unified_diff(l1, l2, file1, file2) else: - l = bunidiff(t1, t2, l1, l2, file1, file2, context=options.context, - showfunc=options.show_c_function, - ignorews=options.ignore_all_space) + l = bunidiff(t1, t2, l1, l2, file1, file2, + diffopts(context=options.context, + showfunc=options.show_c_function, + ignorews=options.ignore_all_space)) for x in l: if x[-1] != '\n': x += "\n\ No newline at end of file\n"