Commit Graph

415 Commits

Author SHA1 Message Date
Rene Pfeuffer
87a4fa8b74 Remove leading slashes when changing files in git 2019-09-11 10:51:26 +02:00
Rene Pfeuffer
0ab8f52e7f Check whether directory already exists as a file 2019-09-10 10:50:56 +02:00
Rene Pfeuffer
5e4496e166 Implement git modify command 2019-09-09 17:14:29 +02:00
Rene Pfeuffer
5e2d63183c Merge with base branch 2019-09-04 13:35:40 +02:00
Rene Pfeuffer
5f037762c7 Verify that branch is a branch 2019-09-04 13:24:59 +02:00
Rene Pfeuffer
c37ed20303 Implement delete for git 2019-09-04 10:31:01 +02:00
Rene Pfeuffer
379c58d3a9 Add parameter to check current revision to prevent conflicts 2019-09-03 10:36:23 +02:00
Rene Pfeuffer
695457e949 Make branch optional in modify command
Due to the fact that the default branch is configured in HEAD, it will
be checked out by default by the clone in GitModifyCommand. Therefore
we won't have to do anything to "select" the default branch if no other
branch is specified.
2019-09-03 08:32:07 +02:00
Rene Pfeuffer
8a7b50a079 Throw exception when no changes were made 2019-08-29 17:57:29 +02:00
Rene Pfeuffer
f02dec5cc6 Add flag to optionally overwrite files with create 2019-08-29 17:22:50 +02:00
Rene Pfeuffer
ae8b519a92 Merge with api changes 2019-08-29 09:45:17 +02:00
René Pfeuffer
aae9ba6a59 Commit and push changes 2019-08-28 16:23:33 +02:00
René Pfeuffer
406620bd9d First steps to implement create in modify command 2019-08-28 15:07:14 +02:00
René Pfeuffer
4f21756d00 Extract class to provide temporary work directories 2019-08-27 16:56:44 +02:00
Sebastian Sdorra
f10b653a1d Fix thrown exceptions 2019-07-31 13:37:12 +02:00
Sebastian Sdorra
07068880bb implemented parsing of git diff hunks 2019-07-29 16:42:49 +02:00
Sebastian Sdorra
01379caa08 implement first diff details 2019-07-29 12:54:58 +02:00
René Pfeuffer
9581bf946b Enable plugins to create config stores for repository config
Therefore we have to
- add an API to create stores for repository ids, not only for
  repositories,
- make v1 properties available in scm-core
- make sure that properties are extracted from repositories before the
  update step of a plugin runs (this is done by sorting the update steps
  in a way so that "core" update steps are executed before plugin update
  steps with the same version)
2019-06-20 16:12:16 +02:00
René Pfeuffer
1288724d6a Remove test without implementation 2019-06-06 13:46:17 +02:00
René Pfeuffer
6244713970 Move constant to interface 2019-06-03 13:47:05 +02:00
René Pfeuffer
c44d38cc61 Introduce abstraction for repository location 2019-05-09 14:08:18 +02:00
Sebastian Sdorra
dd39c6b535 fixed missing checkout call for GitBranchCommand 2019-04-17 13:51:13 +02:00
René Pfeuffer
e649a66423 Fix unit test 2019-04-11 13:52:23 +02:00
René Pfeuffer
9833bfd34d Merge with 2.0.0-m3 2019-03-29 11:54:17 +01:00
René Pfeuffer
2a19313df5 Remove unknown val 2019-03-29 11:06:10 +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
df9e16c485 Clean up generics 2019-03-28 14:10:43 +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
b14eadb13d Add missing mockito config file 2019-03-25 16:44:05 +01:00
René Pfeuffer
39ae41327a Add missing mockito config file 2019-03-25 16:44:05 +01:00
René Pfeuffer
b36f1ca3e4 Mark default branch for git 2019-03-25 12:08:44 +01:00
René Pfeuffer
4ec7006108 Enhance branch object with default flag 2019-03-25 11:28:29 +01:00
René Pfeuffer
cf7e44c04f Merge with 2.0.0-m3 2019-03-11 16:52:14 +01:00
René Pfeuffer
d82f38e0f9 Fix unit test 2019-03-11 16:00:16 +01:00
René Pfeuffer
28d7467e18 Throw not found exceptions for log between branches 2019-03-11 14:17:03 +01:00
René Pfeuffer
ec2aff6aa9 Fix NPE in dry run for missing branches 2019-03-11 09:07:57 +01:00
René Pfeuffer
13695a8671 Keep protocol in variable
We encountered many test failures in Jenkins due to git saying that it
cannot handle scm://. This is a try and error approach.
2019-03-07 17:19:08 +01:00
René Pfeuffer
7adbc4df51 Add some unit test 2019-03-06 16:01:15 +01:00
René Pfeuffer
ebb21ee308 Modify test to test base, not specific class
This was necessary after extracting base class.
2019-03-05 13:47:46 +01:00
René Pfeuffer
9244a72110 Fix unit test 2019-02-21 12:16:39 +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
c42028433f map nonFastForwardDisallowed field from GitConfig and added ui 2019-01-29 10:26:11 +01:00
Sebastian Sdorra
b231499cd0 merge with branch 1.x 2019-01-29 09:42:03 +01:00
René Pfeuffer
3b33b3b0a4 Merge with 2.0.0-m3 2018-12-20 10:55:40 +01:00