Show More
@@ -238,7 +238,7 b' class notifier(object):' | |||||
238 | return |
|
238 | return | |
239 | fp = templater.stringio() |
|
239 | fp = templater.stringio() | |
240 | prev = self.repo.changelog.parents(node)[0] |
|
240 | prev = self.repo.changelog.parents(node)[0] | |
241 |
patch.diff(self.repo, |
|
241 | patch.diff(self.repo, prev, ref, fp=fp) | |
242 | difflines = fp.getvalue().splitlines(1) |
|
242 | difflines = fp.getvalue().splitlines(1) | |
243 | if maxdiff > 0 and len(difflines) > maxdiff: |
|
243 | if maxdiff > 0 and len(difflines) > maxdiff: | |
244 | self.sio.write(_('\ndiffs (truncated from %d to %d lines):\n\n') % |
|
244 | self.sio.write(_('\ndiffs (truncated from %d to %d lines):\n\n') % |
General Comments 0
You need to be logged in to leave comments.
Login now