##// END OF EJS Templates
changegroup: populate _clnodetorev as part of changelog linknode lookup...
Gregory Szorc -
r39030:60760535 default
parent child Browse files
Show More
@@ -852,6 +852,8 b' class cgpacker(object):'
852 clrevorder[x] = len(clrevorder)
852 clrevorder[x] = len(clrevorder)
853
853
854 if self._ellipses:
854 if self._ellipses:
855 self._clnodetorev[x] = cl.rev(x)
856
855 # Only update mfs if x is going to be sent. Otherwise we
857 # Only update mfs if x is going to be sent. Otherwise we
856 # end up with bogus linkrevs specified for manifests and
858 # end up with bogus linkrevs specified for manifests and
857 # we skip some manifest nodes that we should otherwise
859 # we skip some manifest nodes that we should otherwise
@@ -1045,15 +1047,8 b' class cgpacker(object):'
1045 progress.complete()
1047 progress.complete()
1046
1048
1047 def _revisiondeltanarrow(self, store, ischangelog, rev, prev, linknode):
1049 def _revisiondeltanarrow(self, store, ischangelog, rev, prev, linknode):
1048 # build up some mapping information that's useful later. See
1050 linkrev = self._clnodetorev[linknode]
1049 # the local() nested function below.
1051 self._clrevtolocalrev[linkrev] = rev
1050 if ischangelog:
1051 self._clnodetorev[linknode] = rev
1052 linkrev = rev
1053 self._clrevtolocalrev[linkrev] = rev
1054 else:
1055 linkrev = self._clnodetorev[linknode]
1056 self._clrevtolocalrev[linkrev] = rev
1057
1052
1058 # This is a node to send in full, because the changeset it
1053 # This is a node to send in full, because the changeset it
1059 # corresponds to was a full changeset.
1054 # corresponds to was a full changeset.
General Comments 0
You need to be logged in to leave comments. Login now