Show More
@@ -852,7 +852,7 b' class UpgradeOperation(BaseOperation):' | |||
|
852 | 852 | |
|
853 | 853 | return False |
|
854 | 854 | |
|
855 | def _write_labeled(self, l, label): | |
|
855 | def _write_labeled(self, l, label: bytes): | |
|
856 | 856 | """ |
|
857 | 857 | Utility function to aid writing of a list under one label |
|
858 | 858 | """ |
@@ -867,19 +867,19 b' class UpgradeOperation(BaseOperation):' | |||
|
867 | 867 | self.ui.write(_(b'requirements\n')) |
|
868 | 868 | self.ui.write(_(b' preserved: ')) |
|
869 | 869 | self._write_labeled( |
|
870 | self._preserved_requirements, "upgrade-repo.requirement.preserved" | |
|
870 | self._preserved_requirements, b"upgrade-repo.requirement.preserved" | |
|
871 | 871 | ) |
|
872 | 872 | self.ui.write((b'\n')) |
|
873 | 873 | if self._removed_requirements: |
|
874 | 874 | self.ui.write(_(b' removed: ')) |
|
875 | 875 | self._write_labeled( |
|
876 | self._removed_requirements, "upgrade-repo.requirement.removed" | |
|
876 | self._removed_requirements, b"upgrade-repo.requirement.removed" | |
|
877 | 877 | ) |
|
878 | 878 | self.ui.write((b'\n')) |
|
879 | 879 | if self._added_requirements: |
|
880 | 880 | self.ui.write(_(b' added: ')) |
|
881 | 881 | self._write_labeled( |
|
882 | self._added_requirements, "upgrade-repo.requirement.added" | |
|
882 | self._added_requirements, b"upgrade-repo.requirement.added" | |
|
883 | 883 | ) |
|
884 | 884 | self.ui.write((b'\n')) |
|
885 | 885 | self.ui.write(b'\n') |
@@ -893,7 +893,7 b' class UpgradeOperation(BaseOperation):' | |||
|
893 | 893 | self.ui.write(_(b'optimisations: ')) |
|
894 | 894 | self._write_labeled( |
|
895 | 895 | [a.name for a in optimisations], |
|
896 | "upgrade-repo.optimisation.performed", | |
|
896 | b"upgrade-repo.optimisation.performed", | |
|
897 | 897 | ) |
|
898 | 898 | self.ui.write(b'\n\n') |
|
899 | 899 |
General Comments 0
You need to be logged in to leave comments.
Login now