Commit Graph

778 Commits

Author SHA1 Message Date
Eduard Heimbuch
cb6f1bfa22 remove unused move-method from ModifyCommand / create interface for CommandRequests with Author 2019-10-07 14:59:46 +02:00
Eduard Heimbuch
120416c4d6 pull modify changes from working copy to central repository so that mercurial hooks gets triggered 2019-10-07 13:49:43 +02:00
Eduard Heimbuch
a40410d1ae fix hg modify command after factory changes 2019-10-07 11:10:37 +02:00
Sebastian Sdorra
c05798e254 scm-ui: new repository layout 2019-10-07 10:57:09 +02:00
Eduard Heimbuch
34169fb21c merged 2019-10-07 10:48:07 +02:00
René Pfeuffer
3dea971e10 Checkout target branch while cloning repository
This will prevent the checkout of a wrong initial branch and therefore
safe some unnecessary io
2019-10-06 16:29:50 +02:00
Rene Pfeuffer
a9559f5fad Merge with 2.0.0-m3 2019-10-02 11:48:37 +02:00
Eduard Heimbuch
6417ab57e8 remove unnecessary handler from HgModifyCommand / move NoChangesMadeException to scm-core 2019-10-02 10:43:35 +02:00
Eduard Heimbuch
75346c925e implement Modify Command 2019-10-02 10:00:57 +02:00
Sebastian Sdorra
151049657a Merged in bugfix/postpone_writing_to_stream (pull request #322)
Postpone writing to output stream in diff command
2019-10-01 12:52:25 +00:00
Eduard Heimbuch
fb5617d940 implement create method for HgModifyCommand 2019-10-01 14:41:56 +02:00
Eduard Heimbuch
0a5575c2fd add HgModifyCommand / implement delete method 2019-09-30 15:58:33 +02:00
Rene Pfeuffer
e0e4db5583 Fix diff for hg 2019-09-25 15:41:02 +02:00
Rene Pfeuffer
3d27938e80 Postpone writing to output stream in diff command
Without this, the gzip filter would write the first bytes to the
response output stream, before the diff command is triggered and
potential exceptions may be thrown. When exceptions are thrown too late,
filters like the GZip filter may already have sent bytes to the response
stream. Afterwards this cannot be undone and the response created by an
exception mapper may not be valid anymore.
2019-09-25 12:15:30 +02:00
Florian Scholdei
bb1a4c68db add columns for hg configuration page 2019-09-24 15:47:35 +02:00
Rene Pfeuffer
3daec67ca4 Merge with upstream 2019-08-30 09:19:43 +02:00
Rene Pfeuffer
3541ae5e63 Merge with 2.0.0-m3 2019-08-30 09:10:39 +02:00
Sebastian Sdorra
b8265eef1a update yarn.lock files 2019-08-30 08:29:08 +02:00
Sebastian Sdorra
1e6ea0dc88 update ui-bundler to v0.0.31 in order to move react-redux to the vendor bundle 2019-08-30 08:07:48 +02:00
Sebastian Sdorra
51d423f4db update ui-bundler to v0.0.30 to fix react useEffect error in vendor bundle 2019-08-29 14:47:50 +02:00
René Pfeuffer
4f21756d00 Extract class to provide temporary work directories 2019-08-27 16:56:44 +02:00
Sebastian Sdorra
07e70794fb improve plugin information for core plugins 2019-08-19 09:32:18 +02:00
Sebastian Sdorra
55e4568ee5 use mapstruct for dto mapping and fix missing fields 2019-08-15 17:01:15 +02:00
Eduard Heimbuch
b99199e349 merge 2.0.0-m3 2019-08-15 10:51:36 +02:00
Eduard Heimbuch
97c10a867c merged 2019-07-05 08:03:55 +02:00
Rene Pfeuffer
69b26f0f29 Add hint that exception can be ignored 2019-07-04 11:46:25 +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
Sebastian Sdorra
80febf9424 added modules, classloading and view packages to sonia.scm.lifecycle 2019-06-25 09:49:52 +02:00
Sebastian Sdorra
26a8fc4b9c update node to 10.16.0 and yarn to 1.16.0 2019-06-06 11:08:12 +02:00
René Pfeuffer
6244713970 Move constant to interface 2019-06-03 13:47:05 +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
René Pfeuffer
ad51a6fa27 Add cd after init to get into new repository directory 2019-04-29 11:08:05 +02:00
Sebastian Sdorra
37a53c295b move getQueryStringFromLocation to ui-components 2019-04-18 11:42:09 +02:00
Florian Scholdei
7442712cd7 merge 2019-04-01 15:33:51 +02:00
Florian Scholdei
5420884f5a added hg and git branch manual 2019-04-01 13:47:41 +02:00
René Pfeuffer
2e93a9efec Implement peer review comments 2019-03-29 15:39:44 +01:00
René Pfeuffer
89de300137 Add minimal error handling 2019-03-29 13:39:55 +01:00
René Pfeuffer
bf84037019 Minimal cleanup 2019-03-29 13:25:22 +01:00
René Pfeuffer
ee219f2d59 Remove unnecessary interface 2019-03-29 10:36:55 +01:00
René Pfeuffer
1162536e21 Simplify workdir factory 2019-03-29 10:02:38 +01:00
René Pfeuffer
93cec3d282 Add parameter for parent of new branch 2019-03-28 16:15:31 +01:00
René Pfeuffer
81e493ddf0 Fetch error when creating token without request 2019-03-28 15:10:39 +01:00
René Pfeuffer
79be188777 Clean up dependencies 2019-03-28 13:30:04 +01:00
René Pfeuffer
cc4bd6ddd1 Use bearer tokens to authenticate hg hook callbacks 2019-03-28 08:40:56 +01:00
René Pfeuffer
daaa50f08c Move environment preparations to new class 2019-03-27 10:57:09 +01:00
René Pfeuffer
b65e84249d Use clone and push to create branches
Generalize workdir creation for git and hg and create branches in
clones instead of the scm repository, so that hooks will be fired
correctly once the changes are pushed back.

Missing:

- Evaluation of the git response from the push command
- configuration of the hg environment and the authentication, so that
  the scmhooks.py script can be triggeret correctly and can callback
  the scm manager
2019-03-27 10:08:20 +01:00
René Pfeuffer
3c7930d1a9 Add "production" branch command
There already was a branch command for test purposes. This was adapted
for production use with git and hg.
2019-03-26 09:16:33 +01:00
René Pfeuffer
56e61ab966 Mark default branch for hg 2019-03-25 14:20:23 +01:00
René Pfeuffer
4ec7006108 Enhance branch object with default flag 2019-03-25 11:28:29 +01:00