Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 11465:ace5bd98bee3 stable
heads: fix templating of headers again (issue2130)
(tweaks and test by mpm)
author | Simon Howkins <simonh@symbian.org> |
---|---|
date | Thu, 24 Jun 2010 15:18:47 +0100 |
parents | d74fe370ab04 |
children | f786fc4b8764 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Jun 30 12:44:58 2010 +0900 +++ b/mercurial/cmdutil.py Thu Jun 24 15:18:47 2010 +0100 @@ -687,7 +687,6 @@ self.patch = patch self.diffopts = diffopts self.header = {} - self.doneheader = False self.hunk = {} self.lastheader = None self.footer = None @@ -906,9 +905,9 @@ if self.buffered: self.header[ctx.rev()] = h else: - if not self.doneheader: + if self.lastheader != h: + self.lastheader = h self.ui.write(h) - self.doneheader = True # write changeset metadata, then patch if requested key = types['changeset']