Show More
@@ -994,6 +994,7 b' def createmarkers(repo, relations, flag=' | |||||
994 | markerargs = [] |
|
994 | markerargs = [] | |
995 | for rel in relations: |
|
995 | for rel in relations: | |
996 | prec = rel[0] |
|
996 | prec = rel[0] | |
|
997 | if True: | |||
997 | sucs = rel[1] |
|
998 | sucs = rel[1] | |
998 | localmetadata = metadata.copy() |
|
999 | localmetadata = metadata.copy() | |
999 | if 2 < len(rel): |
|
1000 | if 2 < len(rel): | |
@@ -1014,15 +1015,15 b' def createmarkers(repo, relations, flag=' | |||||
1014 |
|
1015 | |||
1015 | # Effect flag can be different by relation |
|
1016 | # Effect flag can be different by relation | |
1016 | if saveeffectflag: |
|
1017 | if saveeffectflag: | |
1017 |
# The effect flag is saved in a versioned field name for |
|
1018 | # The effect flag is saved in a versioned field name for | |
1018 | # evolution |
|
1019 | # future evolution | |
1019 | effectflag = obsutil.geteffectflag(prec, sucs) |
|
1020 | effectflag = obsutil.geteffectflag(prec, sucs) | |
1020 | localmetadata[obsutil.EFFECTFLAGFIELD] = "%d" % effectflag |
|
1021 | localmetadata[obsutil.EFFECTFLAGFIELD] = "%d" % effectflag | |
1021 |
|
1022 | |||
1022 |
# Creating the marker causes the hidden cache to become |
|
1023 | # Creating the marker causes the hidden cache to become | |
1023 |
# which causes recomputation when we ask for |
|
1024 | # invalid, which causes recomputation when we ask for | |
1024 |
# Resulting in n^2 behavior. So let's |
|
1025 | # prec.parents() above. Resulting in n^2 behavior. So let's | |
1025 | # first, then create the markers. |
|
1026 | # prepare all of the args first, then create the markers. | |
1026 | markerargs.append((nprec, nsucs, npare, localmetadata)) |
|
1027 | markerargs.append((nprec, nsucs, npare, localmetadata)) | |
1027 |
|
1028 | |||
1028 | for args in markerargs: |
|
1029 | for args in markerargs: |
General Comments 0
You need to be logged in to leave comments.
Login now