1029 |
1028 |
1030 def __hgQueuePushPatch(self): |
1029 def __hgQueuePushPatch(self): |
1031 """ |
1030 """ |
1032 Private slot used to push the next patch onto the stack. |
1031 Private slot used to push the next patch onto the stack. |
1033 """ |
1032 """ |
1034 self.__hgQueuePushPopPatches(operation=Queues.PUSH, doAll=False, named=False) |
1033 self.__hgQueuePushPopPatches( |
|
1034 operation=QueueOperation.PUSH, doAll=False, named=False |
|
1035 ) |
1035 |
1036 |
1036 def __hgQueuePushPatchForced(self): |
1037 def __hgQueuePushPatchForced(self): |
1037 """ |
1038 """ |
1038 Private slot used to push the next patch onto the stack on top |
1039 Private slot used to push the next patch onto the stack on top |
1039 of local changes. |
1040 of local changes. |
1040 """ |
1041 """ |
1041 self.__hgQueuePushPopPatches( |
1042 self.__hgQueuePushPopPatches( |
1042 operation=Queues.PUSH, doAll=False, named=False, force=True |
1043 QueueOperation=Queues.PUSH, doAll=False, named=False, force=True |
1043 ) |
1044 ) |
1044 |
1045 |
1045 def __hgQueuePushAllPatches(self): |
1046 def __hgQueuePushAllPatches(self): |
1046 """ |
1047 """ |
1047 Private slot used to push all patches onto the stack. |
1048 Private slot used to push all patches onto the stack. |
1048 """ |
1049 """ |
1049 self.__hgQueuePushPopPatches(operation=Queues.PUSH, doAll=True, named=False) |
1050 self.__hgQueuePushPopPatches( |
|
1051 operation=QueueOperation.PUSH, doAll=True, named=False |
|
1052 ) |
1050 |
1053 |
1051 def __hgQueuePushAllPatchesForced(self): |
1054 def __hgQueuePushAllPatchesForced(self): |
1052 """ |
1055 """ |
1053 Private slot used to push all patches onto the stack on top |
1056 Private slot used to push all patches onto the stack on top |
1054 of local changes. |
1057 of local changes. |
1055 """ |
1058 """ |
1056 self.__hgQueuePushPopPatches( |
1059 self.__hgQueuePushPopPatches( |
1057 operation=Queues.PUSH, doAll=True, named=False, force=True |
1060 operation=QueueOperation.PUSH, doAll=True, named=False, force=True |
1058 ) |
1061 ) |
1059 |
1062 |
1060 def __hgQueuePushPatches(self): |
1063 def __hgQueuePushPatches(self): |
1061 """ |
1064 """ |
1062 Private slot used to push patches onto the stack until a named |
1065 Private slot used to push patches onto the stack until a named |
1063 one is at the top. |
1066 one is at the top. |
1064 """ |
1067 """ |
1065 self.__hgQueuePushPopPatches(operation=Queues.PUSH, doAll=False, named=True) |
1068 self.__hgQueuePushPopPatches( |
|
1069 operation=QueueOperation.PUSH, doAll=False, named=True |
|
1070 ) |
1066 |
1071 |
1067 def __hgQueuePushPatchesForced(self): |
1072 def __hgQueuePushPatchesForced(self): |
1068 """ |
1073 """ |
1069 Private slot used to push patches onto the stack until a named |
1074 Private slot used to push patches onto the stack until a named |
1070 one is at the top on top of local changes. |
1075 one is at the top on top of local changes. |
1071 """ |
1076 """ |
1072 self.__hgQueuePushPopPatches( |
1077 self.__hgQueuePushPopPatches( |
1073 operation=Queues.PUSH, doAll=False, named=True, force=True |
1078 operation=QueueOperation.PUSH, doAll=False, named=True, force=True |
1074 ) |
1079 ) |
1075 |
1080 |
1076 def __hgQueuePopPatch(self): |
1081 def __hgQueuePopPatch(self): |
1077 """ |
1082 """ |
1078 Private slot used to pop the current patch off the stack. |
1083 Private slot used to pop the current patch off the stack. |
1079 """ |
1084 """ |
1080 self.__hgQueuePushPopPatches(operation=Queues.POP, doAll=False, named=False) |
1085 self.__hgQueuePushPopPatches( |
|
1086 operation=QueueOperation.POP, doAll=False, named=False |
|
1087 ) |
1081 |
1088 |
1082 def __hgQueuePopPatchForced(self): |
1089 def __hgQueuePopPatchForced(self): |
1083 """ |
1090 """ |
1084 Private slot used to pop the current patch off the stack forgetting |
1091 Private slot used to pop the current patch off the stack forgetting |
1085 any local changes to patched files. |
1092 any local changes to patched files. |
1086 """ |
1093 """ |
1087 self.__hgQueuePushPopPatches( |
1094 self.__hgQueuePushPopPatches( |
1088 operation=Queues.POP, doAll=False, named=False, force=True |
1095 operation=QueueOperation.POP, doAll=False, named=False, force=True |
1089 ) |
1096 ) |
1090 |
1097 |
1091 def __hgQueuePopAllPatches(self): |
1098 def __hgQueuePopAllPatches(self): |
1092 """ |
1099 """ |
1093 Private slot used to pop all patches off the stack. |
1100 Private slot used to pop all patches off the stack. |
1094 """ |
1101 """ |
1095 self.__hgQueuePushPopPatches(operation=Queues.POP, doAll=True, named=False) |
1102 self.__hgQueuePushPopPatches( |
|
1103 operation=QueueOperation.POP, doAll=True, named=False |
|
1104 ) |
1096 |
1105 |
1097 def __hgQueuePopAllPatchesForced(self): |
1106 def __hgQueuePopAllPatchesForced(self): |
1098 """ |
1107 """ |
1099 Private slot used to pop all patches off the stack forgetting |
1108 Private slot used to pop all patches off the stack forgetting |
1100 any local changes to patched files. |
1109 any local changes to patched files. |
1101 """ |
1110 """ |
1102 self.__hgQueuePushPopPatches( |
1111 self.__hgQueuePushPopPatches( |
1103 operation=Queues.POP, doAll=True, named=False, force=True |
1112 operation=QueueOperation.POP, doAll=True, named=False, force=True |
1104 ) |
1113 ) |
1105 |
1114 |
1106 def __hgQueuePopPatches(self): |
1115 def __hgQueuePopPatches(self): |
1107 """ |
1116 """ |
1108 Private slot used to pop patches off the stack until a named |
1117 Private slot used to pop patches off the stack until a named |
1109 one is at the top. |
1118 one is at the top. |
1110 """ |
1119 """ |
1111 self.__hgQueuePushPopPatches(operation=Queues.POP, doAll=False, named=True) |
1120 self.__hgQueuePushPopPatches( |
|
1121 operation=QueueOperation.POP, doAll=False, named=True |
|
1122 ) |
1112 |
1123 |
1113 def __hgQueuePopPatchesForced(self): |
1124 def __hgQueuePopPatchesForced(self): |
1114 """ |
1125 """ |
1115 Private slot used to pop patches off the stack until a named |
1126 Private slot used to pop patches off the stack until a named |
1116 one is at the top forgetting any local changes to patched files. |
1127 one is at the top forgetting any local changes to patched files. |
1117 """ |
1128 """ |
1118 self.__hgQueuePushPopPatches( |
1129 self.__hgQueuePushPopPatches( |
1119 operation=Queues.POP, doAll=False, named=True, force=True |
1130 operation=QueueOperation.POP, doAll=False, named=True, force=True |
1120 ) |
1131 ) |
1121 |
1132 |
1122 def __hgQueueGotoPatch(self): |
1133 def __hgQueueGotoPatch(self): |
1123 """ |
1134 """ |
1124 Private slot used to push or pop patches until the a named one |
1135 Private slot used to push or pop patches until the a named one |
1125 is at the top of the stack. |
1136 is at the top of the stack. |
1126 """ |
1137 """ |
1127 self.__hgQueuePushPopPatches(operation=Queues.GOTO, doAll=False, named=True) |
1138 self.__hgQueuePushPopPatches( |
|
1139 operation=QueueOperation.GOTO, doAll=False, named=True |
|
1140 ) |
1128 |
1141 |
1129 def __hgQueueGotoPatchForced(self): |
1142 def __hgQueueGotoPatchForced(self): |
1130 """ |
1143 """ |
1131 Private slot used to push or pop patches until the a named one |
1144 Private slot used to push or pop patches until the a named one |
1132 is at the top of the stack overwriting local changes. |
1145 is at the top of the stack overwriting local changes. |
1133 """ |
1146 """ |
1134 self.__hgQueuePushPopPatches( |
1147 self.__hgQueuePushPopPatches( |
1135 operation=Queues.GOTO, doAll=False, named=True, force=True |
1148 operation=QueueOperation.GOTO, doAll=False, named=True, force=True |
1136 ) |
1149 ) |
1137 |
1150 |
1138 def __hgQueueListPatches(self): |
1151 def __hgQueueListPatches(self): |
1139 """ |
1152 """ |
1140 Private slot used to show a list of applied and unapplied patches. |
1153 Private slot used to show a list of applied and unapplied patches. |