diff options
author | Paul Martin <paul@paulsputer.com> | 2016-04-27 23:58:06 +0100 |
---|---|---|
committer | Paul Martin <paul@paulsputer.com> | 2016-04-27 23:58:06 +0100 |
commit | c2188a840bc4153ae92112b04b2e06a90d3944aa (patch) | |
tree | c11b48170773fcf1edfc53def832fe5a9b76f1c0 /src | |
parent | 56619e42f0a1e555c004374e7f2b13f744ab23f5 (diff) | |
download | gitblit-c2188a840bc4153ae92112b04b2e06a90d3944aa.tar.gz gitblit-c2188a840bc4153ae92112b04b2e06a90d3944aa.zip |
Ticket Reference handling #1048
+ Supports referencing:
+ Tickets from other tickets via comments
+ Tickets from commits on any branch
+ Common TicketLink class used for both commits and tickets
+ TicketLink is temporary and persisted to ticket as a Reference
+ Support deletion of ticket references
+ Rebasing patchsets/branches will generate new references
+ Deleting old patchsets/branches will remove the relevant references
+ Substantial testing of use cases
+ With and without patchsets, deleting, amending
+ BranchTicketService used during testing to allow end-to-end ref testing
+ Relocated common git helper functions to JGitUtils
Diffstat (limited to 'src')
-rw-r--r-- | src/main/distrib/data/defaults.properties | 7 | ||||
-rw-r--r-- | src/main/java/com/gitblit/git/GitblitReceivePack.java | 243 | ||||
-rw-r--r-- | src/main/java/com/gitblit/git/PatchsetReceivePack.java | 333 | ||||
-rw-r--r-- | src/main/java/com/gitblit/models/TicketModel.java | 218 | ||||
-rw-r--r-- | src/main/java/com/gitblit/tickets/ITicketService.java | 103 | ||||
-rw-r--r-- | src/main/java/com/gitblit/tickets/TicketNotifier.java | 13 | ||||
-rw-r--r-- | src/main/java/com/gitblit/utils/JGitUtils.java | 171 | ||||
-rw-r--r-- | src/main/java/com/gitblit/wicket/GitBlitWebApp.properties | 4 | ||||
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/TicketPage.html | 2 | ||||
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/TicketPage.java | 43 | ||||
-rw-r--r-- | src/main/resources/gitblit.css | 15 | ||||
-rw-r--r-- | src/test/config/test-gitblit.properties | 2 | ||||
-rw-r--r-- | src/test/java/com/gitblit/tests/GitBlitSuite.java | 2 |
|