Commit Graph

1473 Commits

Author SHA1 Message Date
Eduard Heimbuch
cf4d9cf20f 3.x
Committed-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Pushed-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-11-30 17:02:44 +01:00
CES Marvin
6f55210812 Prepare for next development iteration 2023-11-22 11:15:19 +00:00
CES Marvin
fc7c125d78 Release version 2.48.1 2023-11-22 10:26:59 +00:00
CES Marvin
6cbb231c09 Prepare for next development iteration 2023-11-17 14:24:28 +00:00
CES Marvin
9ba45acfb3 Release version 2.48.0 2023-11-17 13:38:07 +00:00
Rene Pfeuffer
571e6ad92f Add a modifications provider for hooks
This new modifications provider consistently computes the modifications caused by a push to a branch. In contrast to the changeset provider that often has been used before to check what has changed, this also works for forced updates, rebased branches and fast-forwards.&#10;&#10;Because these types of changes are normally only used with git, this provider (for now) has only been implemented for git.

Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Pushed-by: Alexander Dammeier<alexander.dammeier@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-11-16 13:18:40 +01:00
Florian Scholdei
a8c32b10de Preferred checkout variant
Add ability to prioritize the repository checkout variants. These are displayed sorted.

Co-authored-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Pushed-by: Florian Scholdei<florian.scholdei@cloudogu.com>
Co-authored-by: Florian Scholdei<florian.scholdei@cloudogu.com>
Pushed-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
2023-11-15 13:27:48 +01:00
Laura Gorzitze
f641c1ef08 Assisted Injection for commands
Co-authored-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Co-authored-by: Laura Gorzitze<laura.gorzitze@cloudogu.com>
Pushed-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Pushed-by: Laura Gorzitze<laura.gorzitze@cloudogu.com>
2023-11-02 12:41:54 +01:00
Eduard Heimbuch
69c165749a Show correct image diff if compare across multiple commits
Pass the ancestor commit as the old revision if it is set in the GitDiffResult. This fixes the image diff renderer if the pull requests consists of multiple commits to show the full diff instead of the changes between the latest two commits.
2023-11-01 14:05:54 +01:00
Konstantin Schaper
0bfc5183cc Consolidate redundant frontend modules
Pushed-by: Konstantin Schaper<konstantin.schaper@cloudogu.com>
Committed-by: Konstantin Schaper<konstantin.schaper@cloudogu.com>
Co-authored-by: Konstantin Schaper<konstantin.schaper@cloudogu.com>
2023-10-13 08:15:27 +02:00
CES Marvin
92b24a76ec Prepare for next development iteration 2023-10-11 11:22:34 +00:00
CES Marvin
f9564208de Release version 2.47.0 2023-10-11 10:35:24 +00:00
Rene Pfeuffer
4033f71bfb Bump JGit to v6.7.0.202309050840-r-scm1
Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-09-26 08:16:04 +02:00
Thomas Zerr
b2472d85d0 Added force to push command for git and hg repos
Committed-by: Rene Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-09-14 20:28:37 +02:00
Rene Pfeuffer
8352cf349c Do not try to init non-git repos for git
The initialization to set the default branch in
git repositories should not be executed for
non-git repositories. Otherwise, this throws
exceptions in SVN repositories all the time
because the branch command is not supported.

Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2023-09-08 13:22:57 +02:00
tzerr
58571711d7 -changed: set Versions to next snapshot 2023-09-01 12:37:18 +02:00
tzerr
762fe7bd1e Merge tag '2.46.1'
Release version 2.46.1
2023-09-01 12:03:40 +02:00
CES Marvin
8c143c2fd8 Release version 2.46.1 2023-09-01 09:15:02 +00:00
tzerr
d835c6f0ca Merge tag '2.44.3'
Release version 2.44.3
2023-09-01 10:44:33 +02:00
CES Marvin
29a92d3d4a Release version 2.44.3 2023-08-31 14:06:39 +00:00
Rene Pfeuffer
545a2061ae Fix check for lfs files
This fixes the check for LFS files used in git imports
and mirror command.

First this checks for LFS files recursively in the tree
(in other words, before LFS files were found only in
the root directory).

Second, this fixes a bug in the used JGit lfs filter by
checking, whether the checked tree entry is a normal
file. This prevents missing object exceptions during
the check when the repository contains a submodule.

Committed-by: Thomas Zerr <thomas.zerr@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-08-31 15:45:13 +02:00
CES Marvin
41b7ef7435 Release version 2.46.0 2023-08-24 09:19:53 +00:00
Eduard Heimbuch
7a352295ab Set git default branch on first push to not-initialized repository
Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2023-08-15 12:06:11 +02:00
Eduard Heimbuch
891c56b21d Bump scm core version to next snapshot 2023-07-27 11:42:41 +02:00
CES Marvin
6c4d30b6cd Prepare for next development iteration 2023-07-18 13:14:33 +00:00
CES Marvin
640f136365 Release version 2.45.1 2023-07-18 13:10:55 +00:00
CES Marvin
a756ed3d99 Prepare for next development iteration 2023-07-17 13:40:55 +00:00
CES Marvin
53a5a6ad9e Release version 2.45.0 2023-07-17 13:28:04 +00:00
Eduard Heimbuch
0e7a3ec53b Improve general performance
- Adjust logging
- Optimize cache speed
- Cleanup classes

Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>

Reviewed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2023-06-28 14:18:18 +02:00
René Pfeuffer
168a3afebe Prepare for next development iteration 2023-06-23 11:49:58 +02:00
René Pfeuffer
28a14aa8f9 Merge branch 'main' into develop 2023-06-23 11:46:40 +02:00
CES Marvin
b30b9d2110 Release version 2.44.2 2023-06-23 07:54:34 +00:00
Eduard Heimbuch
e4d846b0d4 Improve repo exception logging 2023-06-15 12:43:06 +02:00
CES Marvin
4a7f6a77d8 Prepare for next development iteration 2023-06-13 15:58:14 +00:00
CES Marvin
d5073ac6f5 Release version 2.44.1 2023-06-13 14:35:26 +00:00
CES Marvin
ebd62d5591 Prepare for next development iteration 2023-06-08 13:47:46 +00:00
CES Marvin
ac7e83ccee Release version 2.44.0 2023-06-08 12:29:55 +00:00
René Pfeuffer
9f9aebf1d5 Prepare for next development iteration 2023-05-19 13:52:09 +02:00
CES Marvin
617f48878a Release version 2.43.1 2023-05-12 11:28:00 +00:00
Rene Pfeuffer
92390ce0d2 Fix default branch in git mirror command
The git mirror command did not set the default branch correctly in all cases. If the source repository contained a 'master' branch, no default branch was set. This led to an error in the refresh process, when globally another branch has been configured as dafault (when not changed, this is 'main'), because the working copy should be created with the main branch checked out. Because no default was specified, the globally configured default (by default 'main') had been taken and that branch does not exist in the mirror.

So all subsequent mirror updates failed with a message like this one:

could not find branch with id main in repository with id ...

With this fix, the default branch is always set in the SCM-Manager configuration for the repository and therefore cannot be missing in subsequent updates.

Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-05-12 13:12:40 +02:00
CES Marvin
0d80b68661 Prepare for next development iteration 2023-04-12 14:09:45 +00:00
CES Marvin
5458e0c7ec Release version 2.43.0 2023-04-12 13:14:19 +00:00
Eduard Heimbuch
c6df84557b Refactor general configuration
Use standard configuration store api for general configuration. This is best practice and also required for the audit log to work properly.

Besides that we still need to load the general configuration manually for the instance injection binding in ScmServletModules. Since the instance injection does not resolve the bindings regularly we need also still need to update the injectable scm config using the "load" hack in the resource.

Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2023-04-12 12:37:52 +02:00
Konstantin Schaper
7e83d34fc0 Improve committer accuracy
Changes made by the SCM-Manager, like those through the editor and pull requests, now more accurately define the committer on the underlying changeset.

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2023-04-06 10:16:41 +02:00
Rene Pfeuffer
8eb2687e10 Fix branch and tag name validation
The validation for branch and tag names has been
too limited. This led to errors in the frontend for
branches, that had been created using the
cli tools for git or hg but have not been seen as
valid by SCM-Manager.

To fix this, the patterns to validate branch and
tag names are relaxed and relate to the git
rules (https://git-scm.com/docs/git-check-ref-format).
Because these rules could not be expressed
using regular expressions alone, in addition
possible exceptions will be handled in the
git branch and tag commands.

Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
Co-authored-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2023-04-05 11:45:15 +02:00
Konstantin Schaper
d257c8616c Display images in diffs
Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-03-22 11:17:22 +01:00
Rene Pfeuffer
68110ee6b3 Retry failing integration tests
This uses 'RetryingTest' from junit jupiter to retry integration tests that are known to fail from time to time. We explicitly mark single tests in contrast to set a global retry to be able to trace those, whenever this is intended.

To do so, we have to update to the latest version of JUnit. Unfortunately, this brought a new behaviour for the @TempDir annotation: In contrast to the former behaviour where for one test all annotated parameters got the same directory, in the new version the parameters get different directories assigned. This led to the need of some consolidation between @BeforeEach methods and the related tests.

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-03-22 06:24:33 +01:00
René Pfeuffer
1122f781a1 Prepare for next development iteration 2023-03-13 08:32:29 +01:00
René Pfeuffer
34410ce6c9 Merge branch 'main' into develop 2023-03-13 08:29:36 +01:00
CES Marvin
143431cfe0 Release version 2.42.3 2023-03-13 06:13:04 +00:00