Commit graph

296 commits

Author SHA1 Message Date
Paul Campbell a520b91bb9 Move constants from interface to a class 2018-06-21 07:25:46 +01:00
Paul Campbell b10da3eac6 Remove redundant final in try-with-resources 2018-06-21 06:49:22 +01:00
Paul Campbell b4e6cee636 Use try-with-resources for closables 2018-06-20 22:16:22 +01:00
Paul Campbell 32354fe8ea jenkins: more refactor environment checking and switch deploy branch 2018-06-20 19:00:48 +01:00
Paul Campbell e395b54db4 Revert "Use correct sonarqube environment in jenkins"
This reverts commit 8765e83

(cherry picked from commit c86a5aa)
2018-06-18 17:03:07 +01:00
Paul Campbell fe12c17a62 Use correct sonarqube environment in jenkins 2018-06-18 16:34:14 +01:00
Paul Campbell 88452071f8 Remove transactions - bare git repos don't support merging
May reconsider this at some point using a clone of the bare repo.
2018-06-16 12:34:29 +01:00
Paul Campbell 3b89df6589 Jenkins: only release branches protected from SNAPSHOT 2018-06-16 07:50:43 +01:00
Paul Campbell 27d7bbb6d3 When closing the transaction with no additional commits then the base GirDBBranch is returned 2018-06-15 21:46:48 +01:00
Paul Campbell 91d0f5817d Refactor: inline methods 2018-06-15 20:26:39 +01:00
Paul Campbell 8f044e6b77 Extract HeadWriter 2018-06-15 19:26:02 +01:00
Paul Campbell 9b8c4765ae Reduce method count for GitDBBranch 2018-06-15 19:20:34 +01:00
Paul Campbell 58daa2a6a6 Add missing javadoc and update parameter names and remove bp constructor 2018-06-15 19:13:31 +01:00
Paul Campbell 53596f4254 When start a named transaction in a transaction then a new transaction is created 2018-06-15 19:06:14 +01:00
Paul Campbell c01936e55f When start an anonymous transaction in a transaction then a new transaction is created 2018-06-15 19:04:08 +01:00
Paul Campbell cdd35e8008 When get key/value in a transaction then the value is returned 2018-06-15 18:58:53 +01:00
Paul Campbell c506802224 When get format version in transaction then the version is the same 2018-06-15 18:53:50 +01:00
Paul Campbell 791f82e16f When removing a key in a transaction then the transaction branch no longer finds it 2018-06-15 18:48:42 +01:00
Paul Campbell cd700c0130 When removing a key in a transaction then the original GitDbBRanch still finds it 2018-06-15 18:45:26 +01:00
Paul Campbell 0e5d5d4a31 When putting an existing key/value pair then the original GitDbBranch finds the original value 2018-06-15 18:41:09 +01:00
Paul Campbell 1a65fb9123 When starting an anonymous transaction then transaction starts on the same commit 2018-06-15 18:38:34 +01:00
Paul Campbell 71bb51c729 When starting an anonymous transaction then original branch is unchanged 2018-06-15 18:34:10 +01:00
Paul Campbell 53e1fd394b Refactor GitTreeReader 2018-06-15 18:20:05 +01:00
Paul Campbell dc932d8b1d Simplify a test 2018-06-15 17:54:47 +01:00
Paul Campbell 55bf71eb69 Transaction: When putting a new key/value pair then the original GitDbBranch can't find it 2018-06-15 14:49:49 +01:00
Paul Campbell 002429e978 Move helped test methods 2018-06-15 14:49:03 +01:00
Paul Campbell 9c6c2bc247 Rename UnnamedTransaction as GitDBTransactionImpl 2018-06-15 14:48:43 +01:00
Paul Campbell bd4306bbc0 When starting an anonymous transaction then a GitDbTransaction is returned 2018-06-15 14:37:36 +01:00
Paul Campbell 57e39d71ad When starting a named transaction then GitDbTransaction is returned 2018-06-15 14:36:55 +01:00
Paul Campbell 07bdac4b29 Refactoring test to use random string supplier 2018-06-15 12:55:48 +01:00
Paul Campbell 00bfa35460 When getting the format version it matches expected 2018-06-15 12:48:55 +01:00
Paul Campbell 111527f570 When removing a key that does exist then the updated GitDbBranch can't find it 2018-06-15 11:41:44 +01:00
Paul Campbell ac53b4679a When removing a key that does exist then original GitDbBranch can still find it 2018-06-15 11:41:00 +01:00
Paul Campbell 2305c0ed1b Extract NamedRevBlob to top level class 2018-06-15 10:07:23 +01:00
Paul Campbell d6f8bcbc0f When removing a key that does exist then an updated GitDbBranch is returned 2018-06-15 09:52:35 +01:00
Paul Campbell 50a304a941 Extract impl package 2018-06-15 08:29:07 +01:00
Paul Campbell ee585e2fb8 Remove empty files 2018-06-15 08:11:29 +01:00
Paul Campbell 9d567ae8d0 Extract CommitWriter 2018-06-14 22:52:00 +01:00
Paul Campbell d392295401 Extract KeyWriter and ValueWriter 2018-06-14 22:31:41 +01:00
Paul Campbell f00d900dcb Tighten package exposure 2018-06-14 21:07:21 +01:00
Paul Campbell 48dda3d5bf Force GitDBTest to use GitDB's public API 2018-06-14 21:00:21 +01:00
Paul Campbell c57a17b937 Refactoring: extract GitTreeReader 2018-06-14 18:42:09 +01:00
Paul Campbell ffc2b56b05 GitDBRepo.readValue now returns String 2018-06-14 07:32:58 +01:00
Paul Campbell f2ee721ec4 Refactoring - change API for creating GitDBBranch 2018-06-13 21:10:12 +01:00
Paul Campbell 8aabdf8be3 Rename GitDBLocal as LocalGitDB 2018-06-13 20:50:05 +01:00
Paul Campbell 837032b205 Extract InitGitDBRepo.create() 2018-06-13 20:49:12 +01:00
Paul Campbell 2246513bee Refactoring - push jgit from GitDB class 2018-06-13 20:33:59 +01:00
Paul Campbell 36d968335e When removing a key that does not exist then the GitDbBranch is returned 2018-06-13 18:25:22 +01:00
Paul Campbell 5576b12c83 Upgrade planned tests 2018-06-13 18:17:54 +01:00
Paul Campbell 700be4386f Remove out-of-date commented-out tests 2018-06-13 18:14:01 +01:00