Commit Graph

2038 Commits

Author SHA1 Message Date
CES Marvin
e05136e936 Release version 2.27.0 2021-11-16 15:51:01 +00:00
René Pfeuffer
7a72359bc9 File lock for svn (#1847)
Implements the file lock command for SVN.
2021-11-11 10:58:26 +01:00
Sebastian Sdorra
e255eafa29 Fix git unit tests on machines which are not using master as init branch (#1854) 2021-11-10 15:45:12 +01:00
Sebastian Sdorra
b098f80219 Update gradle-smp-plugin to version 0.9.4 2021-11-10 10:33:56 +01:00
Sebastian Sdorra
2938074e1a Update to webpack v5 (#1848)
Update webpack in the following components to version 5:

ui-styles (StyleGuide)
ui-components (Storybook)
ui-scripts (gradle run/build)
This change will also fix a circular dependency between ui-api and ui-components.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-11-10 10:10:17 +01:00
CES Marvin
32ae9126ea Prepare for next development iteration 2021-11-09 16:46:10 +00:00
CES Marvin
b0ec846a73 Release version 2.26.1 2021-11-09 16:16:24 +00:00
René Pfeuffer
f680c9335a Fix concurrent modification in SVN modify command (#1849) 2021-11-09 14:36:20 +01:00
CES Marvin
2e01505e34 Prepare for next development iteration 2021-11-04 13:24:39 +00:00
CES Marvin
b5343bf714 Release version 2.26.0 2021-11-04 12:57:47 +00:00
Eduard Heimbuch
6f61fefec5 Improve a11y (#1841)
Improve accessibility by removing unnecessary tags without hrefs. Also remove many eslint errors and warnings.
2021-11-04 09:16:08 +01:00
René Pfeuffer
cab09680f8 Fix initial mirror sync if empty (#1842)
Fixes an error, when the initial synchronization of a git mirror had no branches.
2021-11-03 10:51:06 +01:00
René Pfeuffer
e1a2d27256 Implement file lock for git (#1838)
Adds a "file lock" command that can be used to mark files as locked by a specific user. This command is implemented for git using a store to keep the locks.

Additionally, the Git LFS locking API is implemented.

To display locks, the scm-manager/scm-file-lock-plugin can be used.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-11-01 16:54:58 +01:00
CES Marvin
3201cee91b Prepare for next development iteration 2021-10-21 12:54:14 +00:00
CES Marvin
241ea02c82 Release version 2.25.0 2021-10-21 12:23:34 +00:00
René Pfeuffer
27b9d2c78a Resolved branch revision in Source Extension Point (#1803)
This adds the "resolved revision" of the HEAD (of the current branch, if branches are supported) to the extension point repos.sources.extensions. This "resolved revision" holds the current HEAD revision of the repository (or the selected branch, if branches are supported). This means you can check, whether the release has changed since an extension has been rendered for the first time.

Co-authored-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2021-10-20 13:29:47 +02:00
René Pfeuffer
6a881b3d98 Fixes recursive browse for git (#1833)
The recursive browse command failed to list files
that started with a name of a folder. These were
listed as children of the folder that has the same
name as the prefix of the file.
2021-10-20 11:28:35 +02:00
René Pfeuffer
39e367bd70 Prevent deletion of default branch (#1827)
Adds a pre receive repository hook that prevents the deletion of the default branch.
Mirrored repositories will change their default branches to another branch, when it is deleted.
2021-10-19 17:31:35 +02:00
Eduard Heimbuch
9b6fd16047 Bump gradle-smp-plugin version to 0.9.3 2021-10-19 10:57:02 +02:00
CES Marvin
3a7e4845a1 Prepare for next development iteration 2021-10-07 14:47:34 +00:00
CES Marvin
264fd6b048 Release version 2.24.0 2021-10-07 14:23:06 +00:00
René Pfeuffer
41b8f091c0 Add recursive deletion in modify command (#1821)
Adds a method in the ModifyCommand to delete not only files, but also directories recursively.
2021-10-07 14:40:48 +02:00
Sebastian Sdorra
1318f40e6d Fix bugs in svn and source tree for folders with a % in the name (#1818)
* Update svnkit to 1.10.3-scm1 to fix handling of path with % in the name
* Fix source tree and breadcrumb navigation for folders with a % in the name
2021-10-04 11:19:25 +02:00
René Pfeuffer
f6de626cd5 Fix edge cases in mirror command (#1812)
- The clone of the repository failed, if no master branch had
  been mirrored, because this was what the HEAD was set to, and
  jgit fails with an exception if the HEAD branch does not exist.
- The HEAD branch had to be corrected to an existing branch,
  because otherwise a rejected 'master' branch could not be
  deleted and was synchronized in a second sync if the working
  directory had been cached.
2021-09-28 09:54:14 +02:00
Florian Scholdei
2cb006d040 Replace styled-components with bulma helpers (#1783)
Use Bulma helpers whenever possible instead of custom styled components.
This pull request replaces primarily color definitions, spacing and flex instructions.
2021-09-15 17:40:08 +02:00
Eduard Heimbuch
4cd7fb622a Initialize mercurial logger (#1804)
Use own logger for mercurial internal commands. This prevents log overflow by javahg's JULLogger.
2021-09-10 10:27:21 +02:00
CES Marvin
a95a18512d Prepare for next development iteration 2021-09-08 12:07:31 +00:00
CES Marvin
ae699571f3 Release version 2.23.0 2021-09-08 11:42:03 +00:00
Eduard Heimbuch
64b03d6ded Fix illegal access from plugin to core api. 2021-09-06 15:21:53 +02:00
Eduard Heimbuch
43e1ea06c8 Fix HalRepresentationWithEmbedded type (#1793)
Fix HalRepresentationWithEmbedded type since _embedded can be null.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-09-02 15:47:15 +02:00
Konstantin Schaper
9ad501b4c6 fix redundant git repo closing (#1789)
Both the GitLogCommand and the GitModificationsCommand incorrectly closed the underlying git repository. This caused the git repository to be opened once but closed twice, which in turn flooded the logs with avoidable warnings and affected performance. The redundant closing of the git repo has been removed from both commands.
2021-09-01 09:44:11 +02:00
Sebastian Sdorra
cf55b15d21 Refactor SvnMirrorCommand
Extracted authentication logic into its own class.
Use source url instead of target url for authenticators and proxy excludes.
Use error code instead of complete message to detect a missing initialisation on update.
2021-08-26 12:20:44 +02:00
Konstantin Schaper
44f25d6b15 Fix disabled local proxy configuration being used over global config (#1780)
The original proxy configuration implementation only used the global configuration if the local proxy configuration was not provided (i.e. null). This PR adds the corner case where a local configuration is provided, but disabled. In this case, the global proxy configuration will be used as a fallback as well.
2021-08-25 08:19:52 +02:00
Sebastian Sdorra
7f9f4e566c Proxy support for pull, push and mirror commands (#1773)
Apply proxy support for jGit by extracting the required functionality from the DefaultAdvancedHttpClient into its own class HttpURLConnectionFactory. This new class is now used by the DefaultAdvancedHttpClient and jGit.
The HttpURLConnection also fixes proxy server authentication, which was non functional in DefaultAdvancedHttpClient.
The proxy support for SVNKit is implemented by using the provided method of the BasicAuthenticationManager.
For mercurial the support is configured by writing the required settings to a temporary hgrc file.
2021-08-19 11:27:51 +02:00
Sebastian Sdorra
3e6ce4e814 Add DefaultBranchChangedEvent (#1763)
The DefaultBranchChangedEvent is fired whenever the default branch of repository changes.
2021-08-11 09:28:00 +02:00
René Pfeuffer
8558572c99 Modifications command between two revisions (#1761)
Adds the option to compute the modifications between two revisions unsing the modifications command.
2021-08-09 12:13:41 +02:00
René Pfeuffer
c3f3778295 Fire post receive hook after import (#1754)
The repository import did not post any PostReceiveRepositoryHookEvent, only an ImportRepositoryHookEvent. With this fix, both events are posted.
2021-08-03 14:31:12 +02:00
CES Marvin
124e7f1b18 Prepare for next development iteration 2021-07-30 13:02:59 +00:00
CES Marvin
ed953b6209 Release version 2.22.0 2021-07-30 12:35:36 +00:00
Sebastian Sdorra
eb9cec3672 Update gradle-smp-plugin to version 0.8.5 2021-07-30 09:14:21 +02:00
Eduard Heimbuch
d6402ad1cb Redesign repository overview (#1740)
Change repository overview layout to use single rows instead cards. Also remove quick links and add clone action to repository entry. The default repository link now leads to the sources view.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-07-28 15:04:00 +02:00
René Pfeuffer
68b2976578 Filter master branch correctly on initial mirror (#1747)
On the first synchronization, the clone has the implicit branch "master". This cannot be
changed in JGit. When we fetch the refs from the repository that should be mirrored, the
master branch of the clone will be updated to the revision of the remote repository (if
it has a master branch). If now the master branch shall be filtered from mirroring (ie.
if it is rejected), we normally would delete the ref in this clone. But because it is
the current branch, it cannot be deleted. We detect this and later, 
after we have pushed the result, delete the master branch by pushing 
an empty ref to the central repository.
2021-07-28 12:04:57 +02:00
Eduard Heimbuch
e560d20d5a Fix SVN repo mirror update (#1745)
Initialize svn repository on mirror update if first initialization failed.
2021-07-28 11:26:33 +02:00
Eduard Heimbuch
e68c178c86 Fix hg fileview resolves for same path on file and directory (#1746)
If a file and a directory with the same name existed somewhere at the same level in a Mercurial repository, our logic in the fileview command failed to collect them. The parent of the file was mistaken for the entire file path, resulting in confusing errors that the file could not be found in the manifest. With this fix, file detection should now be more secure than before.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-07-28 11:22:37 +02:00
René Pfeuffer
ad6000722d LRU semantic for workdir cache (#1735)
Introduces a maximum size for the simple workdir cache. On cache overflow workdirs are evicted using an LRU strategy.
Furthermore parallel requests for the same repository will now block until the workdir is released.
2021-07-28 07:54:37 +02:00
Eduard Heimbuch
f52c0b07bf Enhance push command with username/password authentication (#1734) 2021-07-23 13:42:39 +02:00
CES Marvin
4b2ec8cb66 Prepare for next development iteration 2021-07-21 11:05:18 +00:00
CES Marvin
e6807ad56a Release version 2.21.0 2021-07-21 10:36:56 +00:00
CES Marvin
a80ea62d09 Prepare for next development iteration 2021-06-16 13:34:20 +00:00
CES Marvin
0fe8914f9d Release version 2.20.0 2021-06-16 13:05:07 +00:00