Shaun Ruffell
cc82f468e1
CmdStart: Honor the :adjust flag when overwriting a currently open interval
...
Move the adjustment of a new open interval that is enclosed by the
current open interval into the validation processing, where the other
overlap resolution takes place.
This will allow the start command to honor the :adjust flag when
starting a new interval that predates the current open interval.
Closes #326
Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-07-12 12:27:31 +02:00
Thomas Lauf
1c1066ae6c
Adapt standard overlap resolution
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-07-12 12:18:54 +02:00
Shaun Ruffell
356f20c9de
Remove getOverlaps function
...
Since the Intervals are all in order, we can use getTracked directly to
get overlapping intervals without the need to copy the Intervals into
another vector.
Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-07-08 21:28:41 +02:00
Thomas Lauf
6db29f1df5
Move overlap resolution from CmdContinue to function autoAdjust
...
- Only an open interval can truncate another open interval.
Otherwise the `:adjust` hint has to be applied
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-07-01 08:12:04 +02:00
Thomas Lauf
c6598b9ac8
Convert to early return
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-06-30 21:17:51 +02:00
Thomas Lauf
83ec55cdc6
Remove unused filter
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-06-03 18:44:36 +02:00
Thomas Lauf
9ae3ace109
Make getFilter(cli) a method of CLI
2020-05-10 21:44:30 +02:00
Thomas Lauf
d64017a7a6
Update copyright dates
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-10-18 10:59:16 +02:00
Thomas Lauf
8256b5e625
Removing a stray space char
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-28 21:17:26 +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
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
4f5eb6eb0c
Make warning about new tags adhere to :quiet hint
2018-09-07 10:13:22 +02:00
Thomas Lauf
9b5793206f
Remove old warnOnNewTag function
2018-09-07 10:13:22 +02:00
Simon Ruderich
2271bd9eea
Use https:// link for opensource.org
2018-03-16 23:11:08 +01:00
Thomas Lauf
48ed980c76
TI-66: Move with :adjust leaves overlapping intervals.
...
- Implement 'overwrite' overlap resolution strategy
- Add convenience methods to Range
- also fixes TI-85: :adjust creates overlapping interval
2017-12-14 21:49:34 +01:00
Thomas Lauf
3f269efd9f
TI-75: Fix cases where interval borders match when applying :fill hint
...
- Update ChangeLog
2017-12-01 22:57:18 +01:00
Thomas Lauf
c9a7a59679
Correct typos
2017-09-14 18:33:05 +02:00
Paul Beckingham
3d827dac33
validate: Updated autoAdjust use cases
2017-05-28 11:32:26 -04:00
Paul Beckingham
c1dd9df929
validate: Uses helper function to find overlaps
2017-05-28 11:31:16 -04:00
Paul Beckingham
bbb8bcc1ed
Validate: Rearranged code to elimiante warning
2017-05-21 12:58:47 -04:00
Thomas Lauf
98218c4b75
validate: Fix typo
2017-04-05 22:47:34 +02:00
Paul Beckingham
28e1dffec5
Build: REmoved compiler warning
2016-09-09 22:33:15 -04:00
Paul Beckingham
db84abaf73
validate: Made autoFill public
...
- Made diagnostics controlled by verbose setting.
2016-07-24 16:19:02 -04:00
Paul Beckingham
1555847537
validate: Generalized code to allow autoFill calls from other places
2016-07-24 09:08:10 -04:00
Paul Beckingham
45b09986d8
validate: Removed new tag notification, which is broken
2016-07-23 15:30:04 -04:00
Paul Beckingham
7d7381d909
validate: Added some :ajust use cases
2016-07-17 10:39:01 -04:00
Paul Beckingham
36455b5115
validate: Restructured autoAdjust code
...
- First approach indicates there is no general case. Instead identifiable and
correctable use cases will be gathered. No solution yet.
2016-07-16 11:17:14 -04:00
Paul Beckingham
5528ce8358
validate: Added debug info
2016-07-10 13:08:49 -04:00
Paul Beckingham
0c05fa5a50
validate: Prevents overlapping intervals
2016-07-09 14:57:21 -04:00
Paul Beckingham
93aff67ee0
validate: autoAdjust checks for the hint
2016-07-09 10:32:23 -04:00
Paul Beckingham
283e0a5a21
validate: autoFill checks for the hint
2016-07-09 10:32:04 -04:00
Paul Beckingham
0cbf9a0bdd
validate: Moved verbose check
2016-07-09 10:31:00 -04:00
Paul Beckingham
0d5818d226
validate: Implemented autoFill
2016-07-09 09:46:04 -04:00
Paul Beckingham
f66127f473
validate: Renamed validateInterval to vaildate, and integrated
2016-07-07 22:24:48 -04:00