Commit graph

2360 commits

Author SHA1 Message Date
Thomas Lauf
7dd16c4950 Extract commands into individual man pages 2018-09-19 07:31:26 +02:00
Thomas Lauf
fcd49c2a02 Update ChangeLog 2018-09-19 07:02:51 +02:00
Thomas Lauf
c0039b6ff5 Add convenience method to set range with two dates 2018-09-19 06:32:56 +02:00
Thomas Lauf
9dd106116c Let Interval inherit from Range
- Remove 1 level of indirection
- Remove public field Interval::range (instead use interval directly)
2018-09-19 06:32:56 +02:00
Thomas Lauf
0d33700336 Update ChangeLog 2018-09-18 22:39:54 +02:00
Thomas Lauf
9e1e604108 Rename Range::overlap to Range::overlaps 2018-09-18 21:06:33 +02:00
Thomas Lauf
c48063dec7 Remove unnecessary check from Range::startsWithin/endsWithin 2018-09-18 21:06:33 +02:00
Thomas Lauf
6f79313519 Simplify Range::encloses with Range::startsWithin && Range::endsWithin 2018-09-18 21:06:33 +02:00
Thomas Lauf
1a54bb5c37 Fix corner cases in startsWithin/endsWithin 2018-09-18 21:06:33 +02:00
Thomas Lauf
bd65b67248 Add endsWithin(Range...)
- use startsWithin/endsWithin in autoAdjust(...)
- use Range::contains in startsWithin/endsWithin
2018-09-18 21:06:33 +02:00
Thomas Lauf
592e2853e0 Move debug output about overlaps where it matters 2018-09-18 21:06:33 +02:00
Thomas Lauf
f640eb4bc5 Remove splitting of intervals in storage files
- intervals are stored within the datafile which contains the starting date
- convert segmentContains to startsWithin and unify it
- Closes #174
2018-09-18 21:06:33 +02:00
Thomas Lauf
2f7e247859 Add tests for intervals enclosing month borders 2018-09-18 21:06:33 +02:00
Janik Rabe
fef522c53d Fix getTracked() when last interval is empty 2018-09-18 21:06:05 +02:00
Janik Rabe
4e08bcca4d #165: Add test for empty intervals at midnight 2018-09-18 21:04:09 +02:00
Janik Rabe
2976e43136 #101: Add test for full-month intervals 2018-09-18 21:04:09 +02:00
Janik Rabe
4325ffa136 Handle zero-width intervals correctly
Fixes #101
Fixes #165
Closes #164
2018-09-18 21:04:09 +02:00
Thomas Lauf
0273987ae6 Fix NPE when interval has no tags 2018-09-18 20:51:14 +02:00
Thomas Lauf
3c0627166a Update ChangeLog 2018-09-07 10:13:22 +02:00
Thomas Lauf
4f5eb6eb0c Make warning about new tags adhere to :quiet hint 2018-09-07 10:13:22 +02:00
Thomas Lauf
7771d94dee Update tests 2018-09-07 10:13:22 +02:00
Thomas Lauf
9b5793206f Remove old warnOnNewTag function 2018-09-07 10:13:22 +02:00
Thomas Lauf
f62767bc3d Some code clean-up 2018-09-07 10:13:22 +02:00
Thomas Lauf
a7da0438ca Connect database and tag-info database 2018-09-07 10:13:22 +02:00
Thomas Lauf
b32237cfb8 Add a toJson method to database
- only tag information for tags with count>0 is written out
2018-09-07 10:13:22 +02:00
Thomas Lauf
bfde36a740 Make counter in TagInfo an unsigned int 2018-09-07 10:13:22 +02:00
Thomas Lauf
7d93e23a20 Introduce add function 2018-09-07 10:13:22 +02:00
Thomas Lauf
d974742654 Add a tag database 2018-09-07 10:13:22 +02:00
Janik Rabe
d2f0bc70c8 Do not set CMP0037 on CMake 3.11.0 and above
This policy is no longer necessary because CMake issue #16062, which
caused incorrect warnings to be shown, has been resolved in 3.11.0.
2018-09-07 10:11:36 +02:00
Thomas Lauf
8cc00eef1d Update ChangeLog 2018-08-10 18:10:20 +02:00
Thomas Lauf
961d0212ba #167 Allow intervals to be shortened to zero width
Closes #167
2018-08-10 18:02:41 +02:00
Thomas Lauf
ca7676320c Use configure_exclusions in shorten.t 2018-08-10 17:40:36 +02:00
Thomas Lauf
84a1ffea8f Use configure_exclusions in move.t 2018-08-10 17:33:08 +02:00
Thomas Lauf
5b5a7c1e3d Use configure_exclusions in delete.t 2018-08-10 17:13:56 +02:00
Thomas Lauf
224ea88724 Improve untag.t
- use interval asserts
- use configure_exclusions
- use utc time
2018-08-10 17:08:20 +02:00
Thomas Lauf
c483568e50 Improve track.t
- use interval asserts
- use configure_exclusions
2018-08-10 17:08:20 +02:00
Thomas Lauf
08323c6157 Use relative times in tags.t 2018-08-10 17:08:20 +02:00
Thomas Lauf
037d855f0e Improve tag.t
- use interval asserts
- use utc times
- use configure_exclusions
2018-08-10 17:08:20 +02:00
Thomas Lauf
0d1ec8e06a Improve stop.t
- use interval asserts
- use configure_exclusions
2018-08-10 17:08:20 +02:00
Thomas Lauf
34e8317d01 Improve stop.t
- use interval asserts
- use utc time
- use configure_exclusions
2018-08-10 17:08:20 +02:00
Thomas Lauf
15bb111171 Refactor configure_exclusions 2018-08-10 17:08:20 +02:00
Thomas Lauf
7fefdf80bd Use assertItemsEqual to compare tags 2018-08-10 17:08:20 +02:00
Thomas Lauf
937fdea818 Use interval asserts in split.t 2018-08-10 17:08:20 +02:00
Thomas Lauf
ff01bc45ca Use interval asserts in shorten.t 2018-08-10 17:08:20 +02:00
Thomas Lauf
49750faef4 Use interval asserts in move.t 2018-08-10 17:08:20 +02:00
Thomas Lauf
c7ae1b1588 Improve lengthen.t
- Use configure_exclusions
- Use interval asserts
2018-08-10 17:08:20 +02:00
Thomas Lauf
3f5b47f96c Use interval asserts in join.t 2018-08-10 17:08:20 +02:00
Thomas Lauf
9569eb6144 Use configure_exclusions in gaps.t 2018-08-10 17:08:20 +02:00
Thomas Lauf
3299967274 Use interval asserts in fill.t 2018-08-10 17:08:20 +02:00
Thomas Lauf
14b655c6e8 Improve export.t
- Use interval asserts
- Use UTC time
- Extract configure_exclusions method
2018-08-10 17:08:20 +02:00