##// END OF EJS Templates
changegroupsubset: use manifest.readfast to simplify collector
Matt Mackall -
r13712:c4706acc default
parent child Browse files
Show More
@@ -1473,25 +1473,11 b' class localrepository(repo.repository):'
1473 1473 def collect(mnode):
1474 1474 r = mf.rev(mnode)
1475 1475 clnode = mfs[mnode]
1476 if mf.deltaparent(r) in mf.parentrevs(r):
1477 # If the previous rev is one of the parents,
1478 # we only need to see a diff.
1479 deltamf = mf.readdelta(mnode)
1480 # For each line in the delta
1481 for f, fnode in deltamf.iteritems():
1482 # And if the file is in the list of files we care
1483 # about.
1484 if f in changedfiles:
1485 # Create the set of filenodes for the file if
1486 # there isn't one already.
1487 fnodes.setdefault(f, {}).setdefault(fnode, clnode)
1488 else:
1489 # Otherwise we need a full manifest.
1490 m = mf.read(mnode)
1491 # For every file in we care about.
1476 mdata = mf.readfast(mnode)
1492 1477 for f in changedfiles:
1493 if f in m:
1494 fnodes.setdefault(f, {}).setdefault(m[f], clnode)
1478 if f in mdata:
1479 fnodes.setdefault(f, {}).setdefault(mdata[f], clnode)
1480
1495 1481 return collect
1496 1482
1497 1483 # If we determine that a particular file or manifest node must be a
General Comments 0
You need to be logged in to leave comments. Login now