comparison mercurial/localrepo.py @ 11660:5d62df44cac0

changegroupsubset(): move comment at the right place
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Thu, 22 Jul 2010 23:44:14 +0200
parents deecf1953e7b
children b16fb5d55b83
comparison
equal deleted inserted replaced
11659:deecf1953e7b 11660:5d62df44cac0
1282 """ 1282 """
1283 1283
1284 # Set up some initial variables 1284 # Set up some initial variables
1285 # Make it easy to refer to self.changelog 1285 # Make it easy to refer to self.changelog
1286 cl = self.changelog 1286 cl = self.changelog
1287 # msng is short for missing - compute the list of changesets in this 1287 # Compute the list of changesets in this changegroup.
1288 # changegroup. 1288 # Some bases may turn out to be superfluous, and some heads may be
1289 # too. nodesbetween will return the minimal set of bases and heads
1290 # necessary to re-create the changegroup.
1289 if not bases: 1291 if not bases:
1290 bases = [nullid] 1292 bases = [nullid]
1291 msng_cl_lst, bases, heads = cl.nodesbetween(bases, heads) 1293 msng_cl_lst, bases, heads = cl.nodesbetween(bases, heads)
1292 1294
1293 if extranodes is None: 1295 if extranodes is None:
1300 1302
1301 # slow path 1303 # slow path
1302 self.hook('preoutgoing', throw=True, source=source) 1304 self.hook('preoutgoing', throw=True, source=source)
1303 1305
1304 self.changegroupinfo(msng_cl_lst, source) 1306 self.changegroupinfo(msng_cl_lst, source)
1305 # Some bases may turn out to be superfluous, and some heads may be
1306 # too. nodesbetween will return the minimal set of bases and heads
1307 # necessary to re-create the changegroup.
1308 1307
1309 # Known heads are the list of heads that it is assumed the recipient 1308 # Known heads are the list of heads that it is assumed the recipient
1310 # of this changegroup will know about. 1309 # of this changegroup will know about.
1311 knownheads = set() 1310 knownheads = set()
1312 # We assume that all parents of bases are known heads. 1311 # We assume that all parents of bases are known heads.