Show More
@@ -225,7 +225,8 b' class notifier(object):' | |||||
225 | if maxdiff == 0: |
|
225 | if maxdiff == 0: | |
226 | return |
|
226 | return | |
227 | fp = templater.stringio() |
|
227 | fp = templater.stringio() | |
228 | commands.dodiff(fp, self.ui, self.repo, node, |
|
228 | prev = self.repo.changelog.parents(node)[0] | |
|
229 | commands.dodiff(fp, self.ui, self.repo, prev, | |||
229 | self.repo.changelog.tip()) |
|
230 | self.repo.changelog.tip()) | |
230 | difflines = fp.getvalue().splitlines(1) |
|
231 | difflines = fp.getvalue().splitlines(1) | |
231 | if maxdiff > 0 and len(difflines) > maxdiff: |
|
232 | if maxdiff > 0 and len(difflines) > maxdiff: |
General Comments 0
You need to be logged in to leave comments.
Login now