##// END OF EJS Templates
changegroup: clean up changelog callback...
Gregory Szorc -
r39273:3634ed95 default
parent child Browse files
Show More
@@ -953,7 +953,7 b' class cgpacker(object):'
953 953 # manifest nodes.
954 954 # Returns the linkrev node (identity in the changelog case).
955 955 def lookupcl(x):
956 c = cl.read(x)
956 c = cl.changelogrevision(x)
957 957 clrevorder[x] = len(clrevorder)
958 958
959 959 if self._ellipses:
@@ -963,29 +963,29 b' class cgpacker(object):'
963 963 # have sent.
964 964 if (x in self._fullclnodes
965 965 or cl.rev(x) in self._precomputedellipsis):
966 n = c[0]
966
967 manifestnode = c.manifest
967 968 # Record the first changeset introducing this manifest
968 969 # version.
969 mfs.setdefault(n, x)
970 mfs.setdefault(manifestnode, x)
970 971 # Set this narrow-specific dict so we have the lowest
971 972 # manifest revnum to look up for this cl revnum. (Part of
972 973 # mapping changelog ellipsis parents to manifest ellipsis
973 974 # parents)
974 clrevtomanifestrev.setdefault(cl.rev(x), mfl.rev(n))
975 clrevtomanifestrev.setdefault(
976 cl.rev(x), mfl.rev(manifestnode))
975 977 # We can't trust the changed files list in the changeset if the
976 978 # client requested a shallow clone.
977 979 if self._isshallow:
978 changedfiles.update(mfl[c[0]].read().keys())
980 changedfiles.update(mfl[c.manifest].read().keys())
979 981 else:
980 changedfiles.update(c[3])
982 changedfiles.update(c.files)
981 983 else:
982
983 n = c[0]
984 984 # record the first changeset introducing this manifest version
985 mfs.setdefault(n, x)
985 mfs.setdefault(c.manifest, x)
986 986 # Record a complete list of potentially-changed files in
987 987 # this manifest.
988 changedfiles.update(c[3])
988 changedfiles.update(c.files)
989 989
990 990 return x
991 991
General Comments 0
You need to be logged in to leave comments. Login now