aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
Commit message (Collapse)AuthorAgeFilesLines
* Prepare 7.4.0-SNAPSHOT buildsMatthias Sohn2025-06-033-24/+24
| | | | Change-Id: I4d81243b396783a9dca62f320a32eb8e91168e93
* Prepare 7.3.1-SNAPSHOT buildsMatthias Sohn2025-06-033-24/+24
| | | | Change-Id: If6c3473f3d4bfdf1e61dab3cf82db1d251ed5a15
* JGit v7.3.0.202506031305-rv7.3.0.202506031305-rMatthias Sohn2025-06-033-4/+4
| | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: Ie8520484ce2bfad36989cf58a9d81ddccc64f153
* Prepare 7.3.0-SNAPSHOT buildsMatthias Sohn2025-05-293-4/+4
| | | | Change-Id: I483ab43823984c031828e326892cc43b75023eb3
* JGit v7.3.0.202505281347-rc1v7.3.0.202505281347-rc1Matthias Sohn2025-05-283-4/+4
| | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I08bb10e50b55800a0d20f9ef463537caf42769a6
* Prepare 7.3.0-SNAPSHOT buildsMatthias Sohn2025-05-213-4/+4
| | | | Change-Id: I1fc82b7453287b6dc40dcda84f606bd637cf1ee3
* JGit v7.3.0.202505211123-m3v7.3.0.202505211123-m3Matthias Sohn2025-05-213-4/+4
| | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I425b58e62c158a036dd2793b4e699bdc77f7204b
* Prepare 7.3.0-SNAPSHOT buildsMatthias Sohn2025-05-073-4/+4
| | | | Change-Id: I68408f285a3be41fc6477dc746083a862cd7ee71
* JGit v7.3.0.202505070700-m2v7.3.0.202505070700-m2Matthias Sohn2025-05-073-4/+4
| | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I818dcd940781f5ac2f5c0a171f84ea4a82b238d2
* Update bazel to 8.2.1Matthias Sohn2025-04-231-1/+1
| | | | | | | | | | | | | | Since 8.0.0 the option allow_empty of glob() is false by default [1], hence set it to true where necessary to allow an empty list of resources. Rename repository to jgit_deps to avoid duplicate dependency versions. See [2]. [1] https://docs.bazel.build/versions/3.2.0/be/functions.html#glob [2] https://github.com/bazel-contrib/rules_jvm_external/issues/916 Change-Id: I3912abfde56654c5946c88f9bbf6c0204ce72713
* Prepare 7.3.0-SNAPSHOT buildsMatthias Sohn2025-03-043-24/+24
| | | | Change-Id: Id871f3084a8195fdfa2f7eab058515656bd2c9f9
* Prepare 7.2.1-SNAPSHOT buildsMatthias Sohn2025-03-043-24/+24
| | | | Change-Id: Iddc02bb3c2235b491d9b7034f29591b09d042e11
* JGit v7.2.0.202503040940-rv7.2.0.202503040940-rMatthias Sohn2025-03-043-4/+4
| | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I3d3f7fc6732b3204970a7be7886361920d8ec60e
* JGit v7.2.0.202503040805-rMatthias Sohn2025-03-043-4/+4
| | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: Ie3159a6610f3a1425c3b812f8284c073ee2b429c
* Prepare 7.2.0-SNAPSHOT buildsMatthias Sohn2025-02-263-4/+4
| | | | Change-Id: I92dea20a60d0b03e295a4215656e2686bfa9a294
* JGit v7.2.0.202502261823-rc1v7.2.0.202502261823-rc1Matthias Sohn2025-02-263-4/+4
| | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I2b1209fe339ae6e7dd3c4291e21f97602fc2308d
* Prepare 7.2.0-SNAPSHOT buildsMatthias Sohn2025-02-193-4/+4
| | | | Change-Id: Ib33f0dc4138ecec79b5a15e5ac059e09be2a8334
* JGit v7.2.0.202502191417-m3v7.2.0.202502191417-m3Matthias Sohn2025-02-193-4/+4
| | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: Icf59680527f6f008c971b7e9e2a539da4a2d3428
* Prepare 7.2.0-SNAPSHOT buildsMatthias Sohn2025-01-293-4/+4
| | | | Change-Id: I646edcba7809ab91d8e0a933796b4b5c81736232
* JGit v7.2.0.202501291320-m2v7.2.0.202501291320-m2Matthias Sohn2025-01-293-4/+4
| | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I4e4e203c0f6a2463adefd28d3965eaf44bd2e620
* Merge "Use junit TemporaryFolder to cleanup files created by tests"Matthias Sohn2025-01-292-50/+25
|\
| * Use junit TemporaryFolder to cleanup files created by testsMatthias Sohn2025-01-052-50/+25
| | | | | | | | | | | | | | The custom code used earlier sometimes failed to cleanup files created by tests. Hence replace it by using TemporaryFolder. Change-Id: I8c1219b01835a4a6d20498ab04555af024e4e624
* | junit.FakeIndexFactory: Easy fake indexes for testsIvan Frade2025-01-271-0/+243
|/ | | | | | | Utility to create fake indexes. This simplify unit testing code that requires an index. Change-Id: I30f60cbd37ad5b48f4d919be265bfbf9a7fe57c4
* TestRepository: Stop using deprecated methods in SystemReaderIvan Frade2024-12-271-2/+2
| | | | Change-Id: I1d1f174f739137c24fb586cb2f6d054d4785d716
* TestRepository: add version when annotated methods became deprecatedMatthias Sohn2024-12-251-2/+2
| | | | Change-Id: Ib9466bfbc3d7ecf53af88dd6b5bade7ae48c7165
* LocalDiskRepositoryTestCase: Use java.time API to create PersonIdentIvan Frade2024-12-231-2/+3
| | | | | | | | | | | This code is using deprecated methods in the mock system reader to invoke a deprecated constructor of PersonIdent. Both classes have now new methods with the java.time API. Use java.time methods to get the timestamp and timezone and build the PersonIdent. Change-Id: I4271d9d1d3c9128cfcedc680410448498530de88
* Add missing @since 7.2 to TestRepository#getTimeZoneIdMatthias Sohn2024-12-201-0/+1
| | | | Change-Id: Icf3b29d075e5d91e64cea06dcd75119745bd13e0
* TestRepository: Deprecate #getDate and use #getInstant insteadIvan Frade2024-12-131-9/+24
| | | | | | | | | | | Errorprone recomments to use the more modern java.time API instead of the java.util.Date family of classes. This removes all uses of TestRepository#getDate and replace them with getInstant. The method is marked as deprecated and doesn't have any other usages. Change-Id: I84ea63abf781d0d3c7c2724891fd2ef7afc2db1d
* Prepare 7.2.0-SNAPSHOT buildsMatthias Sohn2024-11-273-24/+24
| | | | Change-Id: Ie3108fefbcbb55a4f26273833c9817ce4bd750f1
* Prepare 7.1.1-SNAPSHOT buildsMatthias Sohn2024-11-263-24/+24
| | | | Change-Id: Ifc710a83cda50f1275cbbd5a828f92d95607f298
* JGit v7.1.0.202411261347-rv7.1.0.202411261347-rMatthias Sohn2024-11-263-4/+4
| | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I70f154dd1dc8571c5e2057d09d08d4a4d1b7ee37
* Prepare 7.1.0-SNAPSHOT buildsMatthias Sohn2024-11-193-4/+4
| | | | Change-Id: I69f57f933899b9926ab5124b24b90ae75f7a8d09
* JGit v7.1.0.202411191359-rc1v7.1.0.202411191359-rc1Matthias Sohn2024-11-193-4/+4
| | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I802c3dbcbb05470aad6255cc05402647e704b446
* SystemReader#now: make it a concrete methodIvan Frade2024-11-141-6/+0
| | | | | | | | | | | | | Abstract methods break subclasses (e.g. DelegateSystemReader in gerrit). Updating jgit and gerrit is simpler if we do not add them. I am not sure why some methods are abstract and others dont, but now() can be a concrete method. Make now() concrete. Implement it by default based on getCurrentTime(), so subclasses overriding that method get the same value. Change-Id: I697749f8cba698c5388ed13ebdc2b238d6259358
* MockSystemReader: create the right time zoneIvan Frade2024-11-131-1/+1
| | | | | | | | | Using this timezone in a later commit, it complains: Exception java.time.DateTimeException: Zone offset minutes and seconds must be negative because hours is negative Change-Id: I5787b51f98109942ac33e0496c5e3761914b2a78
* SystemReader: Give a default implementation to #getTimezoneAt()Ivan Frade2024-11-131-5/+0
| | | | | | | | | | | This abstract method forces subclasses (e.g. DelegateSystemReader in gerrit) to update their code, but there is no strong reason to make it abstract (subclasses can override it if needed). Make the method concrete using the current default implementation (which is the same in the mock). Change-Id: Id1df0d71cab1d86879adf48e782f0050d3abcfa9
* Don't fail when trying to prune pack which is already goneJacek Centkowski2024-11-121-1/+2
| | | | | | | | | Update the TestRepository.prunePacked so that it doesn't fail if a pack to be pruned is already gone. It is especially handy when prunePacked function is called in `TestRepository.packAndPrune` function after repo moves on after the GC was performed. Change-Id: I01b4ddbaddec1fdc24cfbb967e0edfe0de6c4b7c
* Merge branch 'stable-7.0'Matthias Sohn2024-11-121-3/+7
|\ | | | | | | | | | | | | | | | | | | * stable-7.0: Replace custom encoder Constants#encodeASCII by JDK implementation Replace custom encoder `Constants#encode` by JDK implementation Add `numberOfPackFilesAfterBitmap` to RepoStatistics Enhance CommitBuilder#parent to tolerate null parent Change-Id: I46f961144f2e3c4c57ef0f63a9c8954fee8133e9
| * Merge branch 'stable-6.10' into stable-7.0Matthias Sohn2024-11-111-3/+7
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | * stable-6.10: Replace custom encoder Constants#encodeASCII by JDK implementation Replace custom encoder `Constants#encode` by JDK implementation Add `numberOfPackFilesAfterBitmap` to RepoStatistics Enhance CommitBuilder#parent to tolerate null parent Change-Id: If05b0d474c728b54cab9af2b7416be30b2754d1b
| | * Enhance CommitBuilder#parent to tolerate null parentMatthias Sohn2024-11-071-3/+7
| | | | | | | | | | | | Change-Id: Ifdeafd040bca8331804c3e7568da0bee5cbd01df
| | * Prepare 6.10.1-SNAPSHOT buildsMatthias Sohn2024-06-043-24/+24
| | | | | | | | | | | | Change-Id: I3384e7405cadf063e7b0dd25468a8651c45628ac
| | * JGit v6.10.0.202406032230-rv6.10.0.202406032230-rMatthias Sohn2024-06-043-4/+4
| | | | | | | | | | | | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: Id188a6cdc2db63c961f0b9338e6ae56d58853dff
| | * JGit v6.10.0.202406032110-rv6.10.0.202406032110-rMatthias Sohn2024-06-033-4/+4
| | | | | | | | | | | | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I3128b2e4bbbed97adde90f7a47e15175e63e97f5
| | * Prepare 6.10.0-SNAPSHOT buildsMatthias Sohn2024-06-023-4/+4
| | | | | | | | | | | | Change-Id: I64f6d6a0599cbab462dca236c00e6f3314b2a810
| | * JGit v6.10.0.202405290101-rc1v6.10.0.202405290101-rc1Matthias Sohn2024-05-293-4/+4
| | | | | | | | | | | | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: Ie3d08213e00fcfe1fc34a39021dd99f27e0abc1f
| | * JGit v6.10.0.202405282244-rc1v6.10.0.202405282244-rc1Matthias Sohn2024-05-293-4/+4
| | | | | | | | | | | | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: Ia525790e0b4c9011b29768d2b9727cb48b21ba84
| | * Prepare 6.10.0-SNAPSHOT buildsMatthias Sohn2024-05-223-4/+4
| | | | | | | | | | | | Change-Id: I5b6d5c23d504fac386ae04c42b735152fbbcd7ae
| | * JGit v6.10.0.202405212237-m3v6.10.0.202405212237-m3Matthias Sohn2024-05-223-4/+4
| | | | | | | | | | | | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I4efb1066ee4146d0455c39cc07879533b8933e43
| | * Prepare 6.10.0-SNAPSHOT buildsMatthias Sohn2024-03-053-24/+24
| | | | | | | | | | | | Change-Id: Ie728ef9a7d3c6430a5da30f6a61afd2176015748
| | * Prepare 6.9.1-SNAPSHOT buildsMatthias Sohn2024-03-053-24/+24
| | | | | | | | | | | | Change-Id: I10f901209be2faa34ebb9355c86c2106bac38ba5