Show More
@@ -777,12 +777,12 b' def subsetphaseheads(repo, subset):' | |||||
777 |
|
777 | |||
778 | def updatephases(repo, trgetter, headsbyphase): |
|
778 | def updatephases(repo, trgetter, headsbyphase): | |
779 | """Updates the repo with the given phase heads""" |
|
779 | """Updates the repo with the given phase heads""" | |
780 |
# Now advance phase boundaries of all |
|
780 | # Now advance phase boundaries of all phases | |
781 | # |
|
781 | # | |
782 | # run the update (and fetch transaction) only if there are actually things |
|
782 | # run the update (and fetch transaction) only if there are actually things | |
783 | # to update. This avoid creating empty transaction during no-op operation. |
|
783 | # to update. This avoid creating empty transaction during no-op operation. | |
784 |
|
784 | |||
785 |
for phase in allphases |
|
785 | for phase in allphases: | |
786 | revset = b'%ln - _phase(%s)' |
|
786 | revset = b'%ln - _phase(%s)' | |
787 | heads = [c.node() for c in repo.set(revset, headsbyphase[phase], phase)] |
|
787 | heads = [c.node() for c in repo.set(revset, headsbyphase[phase], phase)] | |
788 | if heads: |
|
788 | if heads: |
General Comments 0
You need to be logged in to leave comments.
Login now