diff -r c72e618c1204 -r 43ce1c17e644 mercurial/localrepo.py --- a/mercurial/localrepo.py Thu Apr 27 22:11:13 2006 -0700 +++ b/mercurial/localrepo.py Thu Apr 27 22:29:02 2006 -0700 @@ -1320,7 +1320,8 @@ # Signal that no more groups are left. yield changegroup.closechunk() - self.hook('outgoing', node=hex(msng_cl_lst[0]), source=source) + if nodes: + self.hook('outgoing', node=hex(msng_cl_lst[0]), source=source) return util.chunkbuffer(gengroup())