comparison mercurial/localrepo.py @ 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 3053fc33f545
children f15c6394d90d
comparison
equal deleted inserted replaced
2148:c72e618c1204 2149:43ce1c17e644
1318 # Don't need this anymore, toss it to free memory. 1318 # Don't need this anymore, toss it to free memory.
1319 del msng_filenode_set[fname] 1319 del msng_filenode_set[fname]
1320 # Signal that no more groups are left. 1320 # Signal that no more groups are left.
1321 yield changegroup.closechunk() 1321 yield changegroup.closechunk()
1322 1322
1323 self.hook('outgoing', node=hex(msng_cl_lst[0]), source=source) 1323 if nodes:
1324 self.hook('outgoing', node=hex(msng_cl_lst[0]), source=source)
1324 1325
1325 return util.chunkbuffer(gengroup()) 1326 return util.chunkbuffer(gengroup())
1326 1327
1327 def changegroup(self, basenodes, source): 1328 def changegroup(self, basenodes, source):
1328 """Generate a changegroup of all nodes that we have that a recipient 1329 """Generate a changegroup of all nodes that we have that a recipient