Commit Graph

1662 Commits

Author SHA1 Message Date
Sebastian Sdorra
ef8317d30b Revert "added support for python3"
This reverts commit c924d73115.
2020-06-04 09:53:26 +02:00
Sebastian Sdorra
c924d73115 added support for python3 2020-06-04 07:18:42 +02:00
René Pfeuffer
8528c0cfc1 Fix sonar issues 2020-06-02 21:48:28 +02:00
René Pfeuffer
a32bd01c45 Fix peer review issues 2020-06-02 21:32:06 +02:00
René Pfeuffer
3a68e5ff2b Rename class 2020-06-02 21:31:44 +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
28824c37d3 Cleanup svn on reclaim 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
1163ce9002 For the time being we are happy to delete files, not directories 2020-06-02 21:31:44 +02:00
René Pfeuffer
e8247cbfe1 Clean up hg repo on reclaim 2020-06-02 21:31:44 +02:00
René Pfeuffer
fcdd2243c3 Cleanup 2020-06-02 21:31:43 +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
5f96244b9b Add shutdown 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
1bff965ba5 Remove unused lib 2020-05-20 09:41:27 +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
5c7491c254 Add unit test for hg modifications command 2020-05-19 10:43:59 +02:00
René Pfeuffer
541d6ee0c6 Support copy and renamed modifications for hg 2020-05-19 09:56:24 +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
3d5dda5bd8 Revert changes to jaxb context 2020-05-07 11:04:17 +02:00
Eduard Heimbuch
beb9ad0d13 cleanup outdated jaxb annotations 2020-05-05 18:58:58 +02: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
ffcc146f75 Remove old plugin
License check was replaced by other verion and is configured in root pom.
2020-05-04 11:29:53 +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
2b970f6592 Add hint to future self 2020-04-21 07:19:14 +02:00
René Pfeuffer
e778d5f4d4 Let plugin.xml be written by smp maven plugin 2020-04-20 16:25:04 +02:00
René Pfeuffer
b953b1258b Remove arbitrary apache exception 2020-04-11 22:21:41 +02:00