Commit Graph

54 Commits

Author SHA1 Message Date
Rene Pfeuffer
3e2c8b7c4b Remove archive flag 2019-08-20 14:23:52 +02:00
René Pfeuffer
c35363b79f Store repository id in git config for each repository
This is needed after migration from v1 to v2 and is done in
GitV1UpdateStep.java. Therefore we hat to make the 'forAllPaths' method
in PathBasedRepositoryLocationResolver available in the interface of
RepositoryLocationResolver.
2019-07-03 07:48:06 +02:00
Eduard Heimbuch
8e0063e4b7 cleanup 2019-06-25 09:33:56 +02:00
Eduard Heimbuch
de8f15abf5 fix renameGlobalConfigFile / add Test 2019-06-25 09:12:57 +02:00
René Pfeuffer
75cd5165e3 Add file tools for v1 xml stores 2019-06-21 14:35:57 +02:00
René Pfeuffer
046ccfb2a0 Merge with 2.0.0-m3 2019-06-11 15:02:02 +02:00
René Pfeuffer
815c531220 Use file system class to create repository directory 2019-06-06 13:42:57 +02:00
René Pfeuffer
77a1ad50fe Refresh repository dao after repository.xml file was renamed
Without this, the XmlRepositoryDAO will be initialized at a time
where there is no repository-paths.xml file. Therefore the dao cannot
initialize with the existing repositories whose paths are kept in
repositories.xml at that time.

In this commit we trigger a refresh after the file was renamed, so
that the PathBasedRepositoryLocationResolver can read the moved
repository-paths.xml file and all repositories will be found.
2019-06-06 10:45:56 +02:00
René Pfeuffer
b274952fa9 Create explicit method to create new repository locations 2019-06-05 14:27:35 +02:00
René Pfeuffer
e52518a12b Cleanup
- Mark PathBasedRepositoryLocationResolver as singleton so that other
  users will get the same instance and will not overwrite the paths
  set by migration.
- Set path kept by InlineMigrationStrategy in location resolver to
  store the path.
- Add logging
- Add type of repository to migration web page
2019-06-05 08:21:37 +02:00
René Pfeuffer
3d28f800be Adapt unit test 2019-05-21 17:26:02 +02:00
René Pfeuffer
0f0401b4dd Update modification date of repository database 2019-05-14 10:42:50 +02:00
René Pfeuffer
749c90d465 Fix missing test file 2019-05-14 10:32:46 +02:00
René Pfeuffer
e0ad5c76a7 Cleanup tests for repository dao 2019-05-14 10:08:45 +02:00
René Pfeuffer
c63510536a Cleanup repository dao 2019-05-10 16:32:14 +02:00
René Pfeuffer
e1625bf92f Make LocationResolver create directories 2019-05-10 15:47:57 +02:00
René Pfeuffer
a83e2813a3 Fix path computation and resolving 2019-05-10 13:26:06 +02:00
René Pfeuffer
7f4792ec49 Remove PathBasedRepositoryDAO
The computation of the file path for the repository is done by
RepositoryLocationResolver.
2019-05-10 08:06:36 +02:00
René Pfeuffer
c44d38cc61 Introduce abstraction for repository location 2019-05-09 14:08:18 +02:00
Philipp Czora
38172fb8a1 Fixed test 2019-01-29 11:12:49 +01:00
Philipp Czora
ec4fd48e1e Minor cleanup / typo fixes 2019-01-29 09:34:27 +01:00
René Pfeuffer
d011c82def Fix unit test 2019-01-23 10:13:21 +01:00
René Pfeuffer
02b19e51ef Fix repository permission rest interface 2019-01-23 09:47:38 +01:00
René Pfeuffer
ad65c8cd02 Use PermissionDescriptor instead of String 2019-01-17 13:21:20 +01:00
René Pfeuffer
3021bea65a Multiply floating store factories for type safety 2018-12-04 08:56:39 +01:00
René Pfeuffer
33f3216164 Make type optional 2018-12-03 16:30:19 +01:00
René Pfeuffer
44d99f55f2 Do no longer expose StoreParameters 2018-12-03 12:28:35 +01:00
René Pfeuffer
3638d3520f Use static method for new StoreParameters instance 2018-12-03 11:28:03 +01:00
René Pfeuffer
ab8b3bae42 Merge with 2.0.0-m3 2018-12-03 08:28:47 +01:00
René Pfeuffer
9e7684f003 Peer review 2018-11-30 14:10:00 +01:00
Mohamed Karray
37f4a2b669 merge 2018-11-29 16:01:43 +01:00
Sebastian Sdorra
e9401624a7 re implement XmlRepositoryDAO 2018-11-28 19:49:55 +01:00
Mohamed Karray
fb79cbfd02 merge + refactor getStoreDirectory 2018-11-28 15:14:49 +01:00
René Pfeuffer
d4db39755f Harmonize repository resolution 2018-11-27 15:31:57 +01:00
Mohamed Karray
7a1de0f67b add the interface StoreFactory and refactor storeFactories 2018-11-27 11:35:02 +01:00
René Pfeuffer
00ab764dab Store repository id in native config file
Hooks can read this repository type dependant config file and handle
the changes for the correct repository id
2018-11-26 17:22:17 +01:00
René Pfeuffer
095198cf74 Remove dead code 2018-11-26 12:48:41 +01:00
René Pfeuffer
c8fc673ce0 Remove hooks for internal repository id 2018-11-23 16:12:35 +01:00
René Pfeuffer
3d671caada Let dao create repository base directory before native creation 2018-11-23 15:04:59 +01:00
René Pfeuffer
aa596af880 Remove dead code 2018-11-23 13:16:18 +01:00
René Pfeuffer
c0000df508 Use "real paths" instead of absolute paths
See issue #82 for details:
https://bitbucket.org/sdorra/scm-manager/issues/82/symbolic-link-in-hg-repository-path
2018-11-23 11:59:12 +01:00
René Pfeuffer
5cff79fc97 Add unit test 2018-11-23 11:05:20 +01:00
René Pfeuffer
20f5e7be1f Cleanup usage of InitialRepositoryLocationResolver and RepositoryLocationResolver 2018-11-22 17:06:29 +01:00
René Pfeuffer
d329ca56f8 Replace public method with public constant 2018-11-22 16:41:06 +01:00
René Pfeuffer
00e3cbec57 Refactor directories in RepositoryPath and dao 2018-11-22 12:29:26 +01:00
Sebastian Sdorra
5332ac2466 refactor store api 2016-12-11 21:31:05 +01:00
Sebastian Sdorra
364ecfbdb8 configuration entry store should be able to read the defect format of earlier versions 2013-09-16 11:43:50 +02:00
Sebastian Sdorra
10b2221bb6 fix store and load method of xml configuration entry store 2013-09-16 11:38:17 +02:00
Sebastian Sdorra
345392d309 fix license headers 2013-05-30 09:29:28 +02:00
Sebastian Sdorra
2da419063f added jaxb implementation for new configuration entry store api 2013-04-27 09:23:20 +02:00