Commit Graph

166 Commits

Author SHA1 Message Date
René Pfeuffer
d5d9690389 Remove redundant constructor parameter
The repository can be retrieved from the context and does not have to be
passed through by every constructor
2020-05-12 15:45:58 +02:00
Eduard Heimbuch
beb9ad0d13 cleanup outdated jaxb annotations 2020-05-05 18:58:58 +02:00
Florian Scholdei
f1b34eb502 Changeover to MIT license (#1066)
* prepare license-maven-plugin for license migration
* added license mapping for tsx files and added some more excludes
* Changeover to MIT license
* Fix build problems
* Delete old remaining licenses
* Add more exclude path for license checker
* Rename included netbeans license, add exclude .m2/repository/
* Specify .m2 exclude because not only repository/, also wrapper/ must match
* Add .cache/ exclude for license check
* Modify formatting of license in java classes to comply with convention and IDE
* Add IntelliJ documentation for license configuration
* Update CHANGELOG.md
* Exclude tmp/workspace/ dir for license check
* Edit README.md

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2020-03-23 15:35:58 +01:00
René Pfeuffer
70149865a8 Fix unnecessary stubbing 2020-03-19 08:19:12 +01:00
René Pfeuffer
845a3ea72f Check order of files in test 2020-03-09 09:20:08 +01:00
René Pfeuffer
c7b466f3c6 Fix offset calculation for hg 2020-03-04 14:01:53 +01:00
René Pfeuffer
8b4dd26425 Implement more complex implicit directories 2020-03-04 12:03:58 +01:00
René Pfeuffer
7aa91bf846 Implement simple implicit directories 2020-03-04 11:47:30 +01:00
René Pfeuffer
cb1d9334bb Remove unnecessary check 2020-03-04 10:54:35 +01:00
René Pfeuffer
f2ce14294d Extract parsing of fileview stream and bootstrap tests 2020-03-04 09:30:25 +01:00
René Pfeuffer
5fb338fbd2 Adapt test for new limit/offset rule for hg 2020-03-04 07:15:03 +01:00
René Pfeuffer
1567cd8765 Add tests for recursive request 2020-02-26 17:36:41 +01:00
Rene Pfeuffer
e33d65b097 Merge with default 2020-02-25 16:37:17 +01:00
René Pfeuffer
76665b4dbe Sort hg files 2020-02-25 08:25:25 +01:00
René Pfeuffer
fe1591171d Rename 'proceedFrom' to 'offset' 2020-02-19 09:23:23 +01:00
Rene Pfeuffer
6eca277d65 Add truncated flag for hg 2020-02-18 15:35:49 +01:00
Rene Pfeuffer
9e7fd52f9d Implement request limit for hg 2020-02-18 10:47:20 +01:00
Rene Pfeuffer
97cc0e7b9c Use access key directly, not the jwt token 2020-02-17 11:08:08 +01:00
Rene Pfeuffer
defad2af5b Remove token expiration from test 2020-02-13 11:27:25 +01:00
Rene Pfeuffer
6217a757e3 Add xsrf token to hg callbacks 2020-02-13 09:16:29 +01:00
Rene Pfeuffer
cf9d1edb70 Make partial file attributes explicit. 2019-12-18 11:48:17 +01:00
Rene Pfeuffer
d0f8e4ccf2 Rename utility class 2019-12-05 17:43:21 +01:00
Rene Pfeuffer
6bf86fab8d Introduce abstraction layer for RESTeasy mock dispatcher 2019-11-25 17:04:58 +01:00
Sebastian Sdorra
9e9df35fdb upgrade resteasy, legman and hibernate-validator
* resteasy from 3.6.2.Final to 4.4.1.Final
* legman from 1.5.1 to 1.6.0
* hibernate-validator from 5.3.6.Final to 6.1.0.Final
2019-11-20 10:57:32 +01:00
Rene Pfeuffer
f7e42db850 Rename method 2019-11-11 16:50:39 +01:00
Eduard Heimbuch
782b201e55 cleanup 2019-11-11 11:21:51 +01:00
Eduard Heimbuch
39d41a56c5 implement deleteBranchCommand for hg 2019-11-11 11:16:33 +01:00
Eduard Heimbuch
a13d129eff add Test / HgBrowseCommand shouldResolveBranchForRevision 2019-10-29 10:49:38 +01:00
Eduard Heimbuch
a938fd8682 enhance logcommand 2019-10-25 12:31:18 +02:00
Eduard Heimbuch
285084aed1 remove closeRepository after unit tests since its already closed by abstractTestBase 2019-10-07 16:51:46 +02:00
Eduard Heimbuch
cb6f1bfa22 remove unused move-method from ModifyCommand / create interface for CommandRequests with Author 2019-10-07 14:59:46 +02:00
Eduard Heimbuch
34169fb21c merged 2019-10-07 10:48:07 +02:00
René Pfeuffer
3dea971e10 Checkout target branch while cloning repository
This will prevent the checkout of a wrong initial branch and therefore
safe some unnecessary io
2019-10-06 16:29:50 +02:00
Eduard Heimbuch
6417ab57e8 remove unnecessary handler from HgModifyCommand / move NoChangesMadeException to scm-core 2019-10-02 10:43:35 +02:00
Eduard Heimbuch
75346c925e implement Modify Command 2019-10-02 10:00:57 +02:00
Eduard Heimbuch
fb5617d940 implement create method for HgModifyCommand 2019-10-01 14:41:56 +02:00
Eduard Heimbuch
0a5575c2fd add HgModifyCommand / implement delete method 2019-09-30 15:58:33 +02:00
René Pfeuffer
4f21756d00 Extract class to provide temporary work directories 2019-08-27 16:56:44 +02:00
Sebastian Sdorra
80febf9424 added modules, classloading and view packages to sonia.scm.lifecycle 2019-06-25 09:49:52 +02:00
René Pfeuffer
6244713970 Move constant to interface 2019-06-03 13:47:05 +02:00
René Pfeuffer
7f4792ec49 Remove PathBasedRepositoryDAO
The computation of the file path for the repository is done by
RepositoryLocationResolver.
2019-05-10 08:06:36 +02:00
René Pfeuffer
c44d38cc61 Introduce abstraction for repository location 2019-05-09 14:08:18 +02:00
René Pfeuffer
ee219f2d59 Remove unnecessary interface 2019-03-29 10:36:55 +01:00
René Pfeuffer
1162536e21 Simplify workdir factory 2019-03-29 10:02:38 +01:00
René Pfeuffer
93cec3d282 Add parameter for parent of new branch 2019-03-28 16:15:31 +01:00
René Pfeuffer
79be188777 Clean up dependencies 2019-03-28 13:30:04 +01:00
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