Mercurial > hg-stable
changeset 3017:47aad3489da8
Fixed an exception in notify extension (b2a_hex argument incorrect)
Detailed messages was - incoming.notify hook raised an exception: b2a_hex() argument 1 must be string or read-only character buffer, not stringio
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 24 Aug 2006 15:19:56 -0700 |
parents | 2b255c3478dc |
children | db3f42261452 |
files | hgext/notify.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/notify.py Tue Aug 22 12:20:24 2006 -0500 +++ b/hgext/notify.py Thu Aug 24 15:19:56 2006 -0700 @@ -238,7 +238,7 @@ return fp = templater.stringio() prev = self.repo.changelog.parents(node)[0] - patch.diff(self.repo, fp, prev, ref) + patch.diff(self.repo, prev, ref, fp=fp) difflines = fp.getvalue().splitlines(1) if maxdiff > 0 and len(difflines) > maxdiff: self.sio.write(_('\ndiffs (truncated from %d to %d lines):\n\n') %