This repository has been archived by the owner on Apr 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from rschlaikjer/add-rerun-detection-button
Add rerun detection button Allow pushmasters to manually trigger merge-detection. Useful when a previous push has certed.
- Loading branch information
Showing
10 changed files
with
104 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import pushmanager.core.util | ||
from pushmanager.core.git import GitQueue | ||
from pushmanager.core.git import GitTaskAction | ||
from pushmanager.core.requesthandler import RequestHandler | ||
|
||
|
||
class ConflictCheckServlet(RequestHandler): | ||
|
||
def _arg(self, key): | ||
return pushmanager.core.util.get_str_arg(self.request, key, '') | ||
|
||
def post(self): | ||
if not self.current_user: | ||
return self.send_error(403) | ||
self.pushid = pushmanager.core.util.get_int_arg(self.request, 'id') | ||
GitQueue.enqueue_request(GitTaskAction.TEST_ALL_PICKMES, self.pushid) | ||
self.redirect("/push?id=%d" % self.pushid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<form id="confirm-conflict-check" class="popup-form" action="/conflictcheck" method="POST"> | ||
<div class="form-wrapper"> | ||
|
||
<h2>Check Push for Conflicts</h2> | ||
|
||
<input type="hidden" name="id" value="{{ int(push_info['id']) }}" /> | ||
|
||
Re-run conflict detection on all requests pickme'd for this push? | ||
|
||
<div class="buttons"> | ||
<input type="submit" id="check-conflicts" name="check-conflicts" value="Run" /> | ||
<input type="reset" id="cancel-conflict-check" name="cancel-conflict-check" value="Don't Run" /> | ||
</div> | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters