Commit Graph

120 Commits

Author SHA1 Message Date
René Pfeuffer
cc4bd6ddd1 Use bearer tokens to authenticate hg hook callbacks 2019-03-28 08:40:56 +01:00
René Pfeuffer
b65e84249d Use clone and push to create branches
Generalize workdir creation for git and hg and create branches in
clones instead of the scm repository, so that hooks will be fired
correctly once the changes are pushed back.

Missing:

- Evaluation of the git response from the push command
- configuration of the hg environment and the authentication, so that
  the scmhooks.py script can be triggeret correctly and can callback
  the scm manager
2019-03-27 10:08:20 +01:00
René Pfeuffer
3c7930d1a9 Add "production" branch command
There already was a branch command for test purposes. This was adapted
for production use with git and hg.
2019-03-26 09:16:33 +01:00
René Pfeuffer
4ec7006108 Enhance branch object with default flag 2019-03-25 11:28:29 +01:00
René Pfeuffer
9244a72110 Fix unit test 2019-02-21 12:16:39 +01:00
Sebastian Sdorra
173e51096b fixed injection of HgContext, if no request scope is available 2019-02-18 12:01:34 +01:00
Mohamed Karray
d4a79ee140 Merged in bugfix/read_vcs_versions (pull request #178)
Fix class loader for creation of vcs version string
2019-02-06 09:04:04 +00:00
René Pfeuffer
accd20538e Fix class loader for creation of vcs version string
Use UberClassLoader in
AbstractSimpleRepositoryHandler#getStringFromResource

Therefore pass through plugin loader
2019-02-04 14:35:51 +01:00
Sebastian Sdorra
8bf82213b8 remove unused imports 2019-01-30 14:48:37 +01:00
Sebastian Sdorra
f8f5237ad0 fix usage of deprecated mockito classes 2019-01-30 14:44:38 +01:00
Sebastian Sdorra
69dda6403d update resteasy to v3.6.2.Final in order to fix CVE-2017-7561 and CVE-2016-6347 2019-01-30 13:21:11 +01:00
Sebastian Sdorra
d820605186 fixed integration of mercurial config changes of 1.x 2019-01-29 14:00:11 +01:00
Sebastian Sdorra
b231499cd0 merge with branch 1.x 2019-01-29 09:42:03 +01:00
René Pfeuffer
3021bea65a Multiply floating store factories for type safety 2018-12-04 08:56:39 +01:00
René Pfeuffer
33f3216164 Make type optional 2018-12-03 16:30:19 +01:00
René Pfeuffer
44d99f55f2 Do no longer expose StoreParameters 2018-12-03 12:28:35 +01:00
Mohamed Karray
171f4e2f07 merge 2018-11-29 16:59:04 +01:00
Mohamed Karray
37f4a2b669 merge 2018-11-29 16:01:43 +01:00
Sebastian Sdorra
e9401624a7 re implement XmlRepositoryDAO 2018-11-28 19:49:55 +01:00
Mohamed Karray
fb79cbfd02 merge + refactor getStoreDirectory 2018-11-28 15:14:49 +01:00
René Pfeuffer
d4db39755f Harmonize repository resolution 2018-11-27 15:31:57 +01:00
René Pfeuffer
bc629ec648 Send repository id with hg hook request 2018-11-27 14:06:11 +01:00
Mohamed Karray
7a1de0f67b add the interface StoreFactory and refactor storeFactories 2018-11-27 11:35:02 +01:00
René Pfeuffer
00ab764dab Store repository id in native config file
Hooks can read this repository type dependant config file and handle
the changes for the correct repository id
2018-11-26 17:22:17 +01:00
René Pfeuffer
c8fc673ce0 Remove hooks for internal repository id 2018-11-23 16:12:35 +01:00
René Pfeuffer
0f7e49d20f Bring constant home 2018-11-23 15:52:21 +01:00
René Pfeuffer
3d671caada Let dao create repository base directory before native creation 2018-11-23 15:04:59 +01:00
René Pfeuffer
aa596af880 Remove dead code 2018-11-23 13:16:18 +01:00
René Pfeuffer
e8558e07ec Use repository dao to find repository for given directory in hooks 2018-11-23 10:13:47 +01:00
René Pfeuffer
20f5e7be1f Cleanup usage of InitialRepositoryLocationResolver and RepositoryLocationResolver 2018-11-22 17:06:29 +01:00
Mohamed Karray
8aaea44f1a use relative path for repository directory 2018-11-22 07:05:17 +01:00
René Pfeuffer
72d7479beb Merge test fix 2018-11-21 13:01:29 +01:00
René Pfeuffer
014465d94e Fix test failures
Due to changes from revision e73789174bc1 no hgrc will be created
2018-11-21 13:00:21 +01:00
Mohamed Karray
bb1c84ba24 modify metadata.xml only if needed
introduce a defaultRepositoryDirectory in the XmlRepositoryDatabase
Bugfix: modify repository with changed location
2018-11-21 12:01:13 +01:00
Mohamed Karray
39e5c19251 merge 2018-11-15 11:28:33 +01:00
Mohamed Karray
f8ae7cedf7 Refactor the repository store implementation in order to store repositories in specific paths. 2018-11-15 10:04:16 +01:00
René Pfeuffer
f041b4ecb6 Merge with 2.0.0-m3 2018-10-25 10:15:32 +02:00
René Pfeuffer
b74fb814b8 Introduce default error object with context for not found exceptions 2018-10-18 13:12:16 +02:00
René Pfeuffer
b4c854ee99 Use more generic collection instead of list 2018-10-11 09:55:47 +02:00
René Pfeuffer
83640b9d44 Merge with 2.0.0-m3 2018-10-10 08:54:23 +02:00
Sebastian Sdorra
e71e875e4d Merged in feature/harmonize_branches_in_changesets (pull request #81)
Add branch to changeset collections
2018-10-09 09:10:20 +00:00
Sebastian Sdorra
bc240577f8 implemented new browse api for mercurial 2018-10-08 14:40:40 +02:00
René Pfeuffer
d14d029919 Fix peer review issues 2018-10-01 15:02:23 +02:00
René Pfeuffer
aed4c60296 Add missing unit tests 2018-10-01 12:58:53 +02:00
René Pfeuffer
9f80840c43 Add branch to changeset collections
Branch information is added to a changeset collection and therefore
removed from single changesets for git repositories. Mercurial
repositories now also set the default branch in changesets.
2018-09-26 13:19:38 +02:00
René Pfeuffer
a5dcc8cf8a Merge with 2.0.0-m3 2018-09-14 17:47:45 +02:00
Mohamed Karray
4697c55f96 implement modification api in git, svn and hg. implement the endpoint 2018-09-13 11:57:10 +02:00
René Pfeuffer
7c09f35ac8 Rename UriInfoStore to ScmPathInfoStore 2018-09-12 08:53:15 +02:00
René Pfeuffer
f718a2ba4c Remove direct dependency to UriInfo 2018-09-12 08:40:41 +02:00
Mohamed Karray
9b7e34b08b add tag endpoints 2018-09-04 17:38:28 +02:00