Mercurial > hg
changeset 2107:7ff92c04f8e5
Don't die calling outgoing hook if we have no changesets
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 21 Apr 2006 15:14:27 -0500 |
parents | b03de24ee2ec |
children | 30c7564f6dfc |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Apr 20 12:13:54 2006 -0500 +++ b/mercurial/localrepo.py Fri Apr 21 15:14:27 2006 -0500 @@ -1386,7 +1386,9 @@ yield chnk yield changegroup.closechunk() - self.hook('outgoing', node=hex(nodes[0]), source=source) + + if nodes: + self.hook('outgoing', node=hex(nodes[0]), source=source) return util.chunkbuffer(gengroup())