changeset 2149:43ce1c17e644

allow to pull from an empty repo without getting a backtrace
author Vincent Danjean <vdanjean@free.fr>
date Thu, 27 Apr 2006 22:29:02 -0700
parents c72e618c1204
children f15c6394d90d
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1320,7 +1320,8 @@ class localrepository(object):
             # 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())