123 |
123 |
124 def __hgHisteditStart(self): |
124 def __hgHisteditStart(self): |
125 """ |
125 """ |
126 Private slot used to start a history editing session. |
126 Private slot used to start a history editing session. |
127 """ |
127 """ |
128 shouldReopen = self.vcs.getExtensionObject("histedit")\ |
128 shouldReopen = ( |
|
129 self.vcs.getExtensionObject("histedit") |
129 .hgHisteditStart(self.project.getProjectPath()) |
130 .hgHisteditStart(self.project.getProjectPath()) |
|
131 ) |
130 if shouldReopen: |
132 if shouldReopen: |
131 res = E5MessageBox.yesNo( |
133 res = E5MessageBox.yesNo( |
132 None, |
134 None, |
133 self.tr("Start History Editing"), |
135 self.tr("Start History Editing"), |
134 self.tr("""The project should be reread. Do this now?"""), |
136 self.tr("""The project should be reread. Do this now?"""), |
138 |
140 |
139 def __hgHisteditContinue(self): |
141 def __hgHisteditContinue(self): |
140 """ |
142 """ |
141 Private slot used to continue an interrupted history editing session. |
143 Private slot used to continue an interrupted history editing session. |
142 """ |
144 """ |
143 shouldReopen = self.vcs.getExtensionObject("histedit")\ |
145 shouldReopen = ( |
|
146 self.vcs.getExtensionObject("histedit") |
144 .hgHisteditContinue(self.project.getProjectPath()) |
147 .hgHisteditContinue(self.project.getProjectPath()) |
|
148 ) |
145 if shouldReopen: |
149 if shouldReopen: |
146 res = E5MessageBox.yesNo( |
150 res = E5MessageBox.yesNo( |
147 None, |
151 None, |
148 self.tr("Continue History Editing"), |
152 self.tr("Continue History Editing"), |
149 self.tr("""The project should be reread. Do this now?"""), |
153 self.tr("""The project should be reread. Do this now?"""), |
153 |
157 |
154 def __hgHisteditAbort(self): |
158 def __hgHisteditAbort(self): |
155 """ |
159 """ |
156 Private slot used to abort an interrupted history editing session. |
160 Private slot used to abort an interrupted history editing session. |
157 """ |
161 """ |
158 shouldReopen = self.vcs.getExtensionObject("histedit")\ |
162 shouldReopen = ( |
|
163 self.vcs.getExtensionObject("histedit") |
159 .hgHisteditAbort(self.project.getProjectPath()) |
164 .hgHisteditAbort(self.project.getProjectPath()) |
|
165 ) |
160 if shouldReopen: |
166 if shouldReopen: |
161 res = E5MessageBox.yesNo( |
167 res = E5MessageBox.yesNo( |
162 None, |
168 None, |
163 self.tr("Abort History Editing"), |
169 self.tr("Abort History Editing"), |
164 self.tr("""The project should be reread. Do this now?"""), |
170 self.tr("""The project should be reread. Do this now?"""), |
169 def __hgHisteditEditPlan(self): |
175 def __hgHisteditEditPlan(self): |
170 """ |
176 """ |
171 Private slot used to edit the remaining actions list of an interrupted |
177 Private slot used to edit the remaining actions list of an interrupted |
172 history editing session. |
178 history editing session. |
173 """ |
179 """ |
174 shouldReopen = self.vcs.getExtensionObject("histedit")\ |
180 shouldReopen = ( |
|
181 self.vcs.getExtensionObject("histedit") |
175 .hgHisteditEditPlan(self.project.getProjectPath()) |
182 .hgHisteditEditPlan(self.project.getProjectPath()) |
|
183 ) |
176 if shouldReopen: |
184 if shouldReopen: |
177 res = E5MessageBox.yesNo( |
185 res = E5MessageBox.yesNo( |
178 None, |
186 None, |
179 self.tr("Edit Plan"), |
187 self.tr("Edit Plan"), |
180 self.tr("""The project should be reread. Do this now?"""), |
188 self.tr("""The project should be reread. Do this now?"""), |