Don't die calling outgoing hook if we have no changesets

This commit is contained in:
Matt Mackall 2006-04-21 15:14:27 -05:00
parent be828d059c
commit c0ee3e5b00

View File

@ -1386,7 +1386,9 @@ class localrepository(object):
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())