Commit Graph

1237 Commits

Author SHA1 Message Date
CES Marvin
a3e4c1ddf4 prepare for next development iteration 2020-06-04 09:41:11 +00:00
CES Marvin
4ae098e3b6 release version 2.0.0 2020-06-04 09:03:17 +00:00
René Pfeuffer
a32bd01c45 Fix peer review issues 2020-06-02 21:32:06 +02:00
René Pfeuffer
77d6784386 Remove unnecessary interfaces 2020-06-02 21:31:44 +02:00
René Pfeuffer
7e945afc43 Keep ParentAndClone inside working copy factories 2020-06-02 21:31:44 +02:00
René Pfeuffer
d6b618f0ec Remove superfluous exception class 2020-06-02 21:31:44 +02:00
René Pfeuffer
3c808bf171 Use existing RepositoryProvider 2020-06-02 21:31:44 +02:00
René Pfeuffer
b40861534c Extract classes 2020-06-02 21:31:44 +02:00
René Pfeuffer
4c73f27389 Make reclaimer and initializer top level classes 2020-06-02 21:31:44 +02:00
René Pfeuffer
62a47d016f Document SimpleGitWorkingCopyFactory 2020-06-02 21:31:44 +02:00
René Pfeuffer
f74b7626eb New package for working copy related classes 2020-06-02 21:31:44 +02:00
René Pfeuffer
e968aa17ef Cleanup 2020-06-02 21:31:44 +02:00
René Pfeuffer
8bd17a03d7 Use better names
The name 'workdir' is now only used for a concrete directory, where a
clone can be created in. The new name 'working copy' is used for a
concrete instance of such a directory, where a clone has been created in
for a repository stored in SCM-Manager. Such a working copy can be
cached and reused for further changes.
2020-06-02 21:31:43 +02:00
René Pfeuffer
e5f4ad72d6 Add test for git reclaim of workdir 2020-06-02 21:31:43 +02:00
René Pfeuffer
7e89a0c1c0 Update repositories in reclaim 2020-06-02 21:31:43 +02:00
René Pfeuffer
5b034f8d02 Introduce cache layer for workdirs 2020-06-02 21:31:43 +02:00
Eduard Heimbuch
97cac87563 merge with develop 2020-05-20 12:13:47 +02:00
René Pfeuffer
054f320455 Make change types explicit
Without explicit change types, we cannot tell copy and rename apart.
2020-05-19 23:09:28 +02:00
René Pfeuffer
2b1ba7e4f3 Update servlet version 2020-05-19 16:29:40 +02:00
René Pfeuffer
c722565109 Hide getEffectedPaths for other packages 2020-05-19 09:56:24 +02:00
René Pfeuffer
35ffc5c4e2 Introduce new API for modifications
New modifications includes list of 'renames'. Therefore we introduce
a new base class Modification.
2020-05-19 09:56:24 +02:00
René Pfeuffer
76354aa839 Close diff formatter 2020-05-19 09:56:24 +02:00
René Pfeuffer
4d352efef0 Remove wrong test
The GitHunkParser has nothing to do with renames, so this test does not
make any sense.
2020-05-19 09:56:24 +02:00
René Pfeuffer
fba34b3bab Add unit tests 2020-05-19 09:56:24 +02:00
René Pfeuffer
dbc58784e4 Fix path handling 2020-05-19 09:56:24 +02:00
René Pfeuffer
ae51a583fd POC for rename detection in diffs 2020-05-19 09:56:24 +02:00
René Pfeuffer
3a92aae21c Escape > in html 2020-05-19 09:54:05 +02:00
Sebastian Sdorra
e63889ec8b use packages.scm-manager.org instead of maven.scm-manager.org 2020-05-18 13:46:04 +02:00
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
René Pfeuffer
d62f5dde18 Fix version 2020-05-11 14:25:18 +02:00
CES Marvin
52a8f0e9ca prepare for next development iteration 2020-05-08 09:19:12 +00:00
CES Marvin
1d80b043c7 release version 2.0.0-rc8 2020-05-08 08:49:02 +00:00
René Pfeuffer
52a09a96d2 Fix error with redundant line breaks
This fixes an error with a repository, where an added file has \r\r\n
as line breaks. This interesting combination is handled as a single
line break by the diff operation, while Java's Scanner implementation
handles this as two lines (the first one delimited by the first \r,
the second one delimited by \r\n. This led to empty lines inside the
diff, where we only expect lines that contain at least one character
(' ', '+' or '-'), and this in turn led to an index out of bounds
exception.

Now we handle each combination of any kind of new line delimiter
characters as a single delimiter. This should be safe, because, as
mentioned earlier, we always expect at least one character in a line
for a diff output.
2020-05-04 15:23:46 +02:00
René Pfeuffer
0f1bc647a4 Fix git protocol uri for windows
Fixes the 'scm' protocol uri for Windows. Have to replace all
backslashes with forward slashes, add one more slash at the
beginning and remove the colon from the dirve.
2020-04-27 08:06:26 +02:00
René Pfeuffer
c4fc0615b5 Set version back to 2.0.0-SNAPSHOT 2020-04-09 21:08:58 +02:00
CES Marvin
d5847e7965 prepare for next development iteration 2020-04-09 19:03:13 +00:00
CES Marvin
3cf675f30d release version 2.0.0-rc7 2020-04-09 18:37:13 +00:00
René Pfeuffer
19603b6777 Fix detection of sub repositories (aka submodules)
Without this on creation of a tree entry we try to read the object
for the given object id, but in case of a submodule this is not the
id of an object (the constructor of TreeEntry calls
repo.open(objectId)). Therefore the lookup creates an exception. With
this fix we check, whether the given path is a submodule beforehand.
2020-04-06 13:34:06 +02:00
René Pfeuffer
41d02b9c24 Set version back to 2.0.0-SNAPSHOT 2020-03-26 18:52:11 +01:00
CES Marvin
263072d68b prepare for next development iteration 2020-03-26 15:59:09 +00:00
CES Marvin
d94a2d9b7f release version 2.0.0-rc6 2020-03-26 15:23:24 +00: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
f5cfd0ca68 Adapt unit test to new mockito api 2020-03-20 11:44:28 +01:00
Sebastian Sdorra
7f24fc8c9c prepare for next development iteration 2020-03-13 07:32:02 +01:00
CES Marvin
cabefa72fb release version 2.0.0-rc5 2020-03-12 21:11:54 +00:00
René Pfeuffer
f39a676044 Remove unused function 2020-03-12 10:45:52 +01:00
René Pfeuffer
55ef3f8c8c Merge remote-tracking branch 'origin/develop' into feature/browse_commit_with_limit
# Conflicts:
#	CHANGELOG.md
2020-03-10 09:43:31 +01:00
René Pfeuffer
2d117648ba Add possibility to set jgit nfs related config
It may be necessary for users to configure jgit behaviour related to
file handling. This commit makes the following two configurations
available (among others):

- core.trustfolderstat
- core.supportsatomicfilecreation
2020-03-09 16:44:42 +01:00
René Pfeuffer
b8ab729c45 Merge branch 'develop' into feature/browse_commit_with_limit 2020-03-09 08:40:29 +01:00
Sebastian Sdorra
abb6a41946 migrate from bitbucket to github 2020-03-09 08:01:36 +01:00