When a commit could not be found, JGit throws a MissingObjectException.
Because this extends IOException, the according catch block is executed
with a log with level ERROR and the message, that the repository could not
be opened. This is simply wrong.
With this, we catch the MissingObjectException explicitly and simply return null.
With this, we updated the zipped test repositories in
scm-plugins/scm-hg-plugin/src/test/resources/sonia/scm/repository
with `hg debugupgraderepo --run` and a hg version 5.3.1
It lookes like the old format does not work with newer
version of hg (maybe since 6.x or 6.7 or something)
* Merge: Author and committer from request
* Squash: Author from request, committer from session
* Rebase: Rebase from original commit, committer from session
* Fast-forward: No changes, author and committer from tip
These are the four stratagies available for a merge. Each of them has a different requirement regarding who is seen as an author and who as a committer.
* Merge: Author and committer from request
* Squash: Author from request, committer from session
* Rebase: Rebase from original commit, committer from session
* Fast-forward: No changes, author and committer from tip
These are the four stratagies available for a merge. Each of them has a different requirement regarding who is seen as an author and who as a committer.
This adds the new "queryable store" API, that allows complex
queries and is backed by SQLite. This new API can be used
for entities annotated with the new QueryableType annotation.
Tasks.documentation.javadoc threw around 50 errors due to multiple inconsistencies within the javadoc comments.
Furthermore, the option 'failOnError' is now set to 'true' so that future Javadoc errors in our codebase are avoided.
Squash commits of branch feature/repository-type-configuration:
- Refactor hg configuration form
- Add support of description text for checkbox and input fields
- Refactor git configuration form
- Refactor svn configuration form
- Add aria-describedby for checkbox and input fields
- Change hgBinary can also be null
- Fix naming of test
- Fix spelling
- Change logic of successfull notification to only be shown if the config rest api returns without an error
Reviewed-by: Philipp Ahrendt <philipp.ahrendt@cloudogu.com>, Till-André Diegeler <till-andre.diegeler@cloudogu.com>
Reviewed-by: Philipp Ahrendt <philipp.ahrendt@cloudogu.com>
The review plugin does not explicitly check, if the
branch provider is supported in events. It only checks,
whether the repository supports branches per se.
Therefor, if a tag is created from the ui, an internal server
error is thrown. We prevent this by implementing a
simple branch provider here, too.