| | |
| | | import com.gitblit.Constants; |
| | | import com.gitblit.git.ReceiveCommandEvent; |
| | | import com.gitblit.manager.INotificationManager; |
| | | import com.gitblit.manager.IPluginManager; |
| | | import com.gitblit.manager.IRepositoryManager; |
| | | import com.gitblit.manager.IRuntimeManager; |
| | | import com.gitblit.manager.IUserManager; |
| | |
| | | |
| | | public BranchTicketService( |
| | | IRuntimeManager runtimeManager, |
| | | IPluginManager pluginManager, |
| | | INotificationManager notificationManager, |
| | | IUserManager userManager, |
| | | IRepositoryManager repositoryManager) { |
| | | |
| | | super(runtimeManager, |
| | | pluginManager, |
| | | notificationManager, |
| | | userManager, |
| | | repositoryManager); |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns a RefModel for the refs/gitblit/tickets branch in the repository. |
| | | * Returns a RefModel for the refs/meta/gitblit/tickets branch in the repository. |
| | | * If the branch can not be found, null is returned. |
| | | * |
| | | * @return a refmodel for the gitblit tickets branch or null |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates the refs/gitblit/tickets branch. |
| | | * Creates the refs/meta/gitblit/tickets branch. |
| | | * @param db |
| | | */ |
| | | private void createTicketsBranch(Repository db) { |
| | |
| | | * folder with the remaining characters as a subfolder within that folder. |
| | | * |
| | | * @param ticketId |
| | | * @return the root path of the ticket content on the refs/gitblit/tickets branch |
| | | * @return the root path of the ticket content on the refs/meta/gitblit/tickets branch |
| | | */ |
| | | private String toTicketPath(long ticketId) { |
| | | StringBuilder sb = new StringBuilder(); |
| | |
| | | } catch (Exception e) { |
| | | log.error(null, e); |
| | | } finally { |
| | | db.close(); |
| | | if (db != null) { |
| | | db.close(); |
| | | } |
| | | } |
| | | return false; |
| | | } |