Show More
@@ -748,6 +748,14 b' class phasecache:' | |||||
748 | if nullrev in new_revs: |
|
748 | if nullrev in new_revs: | |
749 | raise error.Abort(_(b'cannot change null revision phase')) |
|
749 | raise error.Abort(_(b'cannot change null revision phase')) | |
750 |
|
750 | |||
|
751 | # Filter revision that are already in the right phase | |||
|
752 | self._ensure_phase_sets(repo) | |||
|
753 | for phase, revs in self._phasesets.items(): | |||
|
754 | if phase >= targetphase: | |||
|
755 | new_revs -= revs | |||
|
756 | if not new_revs: # all revisions already in the right phases | |||
|
757 | return {} | |||
|
758 | ||||
751 | # Compute change in phase roots by walking the graph |
|
759 | # Compute change in phase roots by walking the graph | |
752 | # |
|
760 | # | |
753 | # note: If we had a cheap parent → children mapping we could do |
|
761 | # note: If we had a cheap parent → children mapping we could do |
General Comments 0
You need to be logged in to leave comments.
Login now