##// END OF EJS Templates
changegroup: remove one special case from lookupmflinknode...
Augie Fackler -
r27239:65c47779 default
parent child Browse files
Show More
@@ -656,6 +656,9 b' class cg1packer(object):'
656 # Callback for the manifest, used to collect linkrevs for filelog
656 # Callback for the manifest, used to collect linkrevs for filelog
657 # revisions.
657 # revisions.
658 # Returns the linkrev node (collected in lookupcl).
658 # Returns the linkrev node (collected in lookupcl).
659 if fastpathlinkrev:
660 lookupmflinknode = mfs.__getitem__
661 else:
659 def lookupmflinknode(x):
662 def lookupmflinknode(x):
660 """Callback for looking up the linknode for manifests.
663 """Callback for looking up the linknode for manifests.
661
664
@@ -664,13 +667,12 b' class cg1packer(object):'
664 SIDE EFFECT:
667 SIDE EFFECT:
665
668
666 fclnodes gets populated with the list of relevant
669 fclnodes gets populated with the list of relevant
667 file nodes if we're not using fastpathlinkrev.
670 file nodes.
668
671
669 Note that this means you can't trust fclnodes until
672 Note that this means you can't trust fclnodes until
670 after manifests have been sent to the client.
673 after manifests have been sent to the client.
671 """
674 """
672 clnode = mfs[x]
675 clnode = mfs[x]
673 if not fastpathlinkrev:
674 mdata = ml.readfast(x)
676 mdata = ml.readfast(x)
675 for f in mfchangedfiles[x]:
677 for f in mfchangedfiles[x]:
676 try:
678 try:
General Comments 0
You need to be logged in to leave comments. Login now