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	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())