Mercurial > hg > mercurial-crew-with-dirclash
diff hgext/notify.py @ 2224:e8f47dfb70f4
notify extension: generate right number of diffs
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Mon, 08 May 2006 11:16:09 -0700 |
parents | 05b6c13f43c6 |
children | ff43ea94eff4 |
line wrap: on
line diff
--- a/hgext/notify.py +++ b/hgext/notify.py @@ -225,7 +225,8 @@ class notifier(object): if maxdiff == 0: return fp = templater.stringio() - commands.dodiff(fp, self.ui, self.repo, node, + prev = self.repo.changelog.parents(node)[0] + commands.dodiff(fp, self.ui, self.repo, prev, self.repo.changelog.tip()) difflines = fp.getvalue().splitlines(1) if maxdiff > 0 and len(difflines) > maxdiff: