changeset 18677 | 539210ed2069 |
parent 18672 | b2b4ddc55caa |
child 18691 | 4f485bd68f1d |
--- a/mercurial/localrepo.py Wed Feb 13 10:54:52 2013 -0800 +++ b/mercurial/localrepo.py Wed Feb 13 11:07:01 2013 -0800 @@ -2400,11 +2400,11 @@ self.hook("incoming", node=hex(n), source=srctype, url=url) - heads = self.heads() + newheads = [h for h in self.heads() if h not in oldheads] self.ui.log("incoming", _("%s incoming changes - new heads: %s\n"), len(added), - ', '.join([hex(c[:6]) for c in heads])) + ', '.join([hex(c[:6]) for c in newheads])) self._afterlock(runhooks) finally: