# HG changeset patch # User Steve Losh # Date 1279667097 14400 # Node ID a572f44059099d3b2fdd2914a241a1716f365d50 # Parent fcdbab575d223047478ced3bfd37462b9ec6abc9 api: it's 2010 -- time to use git diffs fixes issue 47 diff -r fcdbab575d22 -r a572f4405909 review/api.py --- a/review/api.py Tue Jul 20 18:43:14 2010 -0400 +++ b/review/api.py Tue Jul 20 19:04:57 2010 -0400 @@ -533,8 +533,9 @@ diffs = {} for filename in filenames: m = cmdutil.matchfiles(self.target, [filename]) - d = patch.diff(self.target, node1, node2, match=m, - opts=patch.diffopts(self.ui, opts)) + diff_opts = patch.diffopts(self.ui, opts) + diff_opts.git = True + d = patch.diff(self.target, node1, node2, match=m, opts=diff_opts) # patch.diff will give us back a generator with two items # the first is the diff --git header, which we don't care about