Commit graph

2904 commits

Author SHA1 Message Date
Thomas Lauf
ace5cbe876 Update libshared to 9d4a44f877611484233bab42fd9e5af3ef47b26c
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-11-09 21:50:47 +01:00
Thomas Lauf
532d1b4e91 Add test for get dom.tracked.tags with a tag with quotes
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-10-02 09:20:22 +02:00
Thomas Lauf
dafca6662d Accommodate tests for missing space at end of line
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-10-02 09:07:32 +02:00
Thomas Lauf
a8b4055ad5 Quote tags if needed when outputting them on one line
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-10-02 08:36:46 +02:00
Thomas Lauf
5b1deaab59 Do not overwrite interval index when parsing DOM reference
- Closes #390

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-10-02 08:36:46 +02:00
Joerg Kastning
d90eab17a0 Fixed URL for tarball download 2020-09-15 14:17:57 +02:00
Thomas Lauf
985717e9c8 Deactivate Gentoo Docker image due to its high maintenance costs
- See issue #380 for details

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-09-04 10:43:13 +02:00
Thomas Lauf
2e4d3266cf Add space
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-09-03 23:34:29 +02:00
Thomas Lauf
78fe021e47 Update ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-09-03 22:06:36 +02:00
Thomas Lauf
4487b9a617 Enter commit hash for release 1.4.2
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-09-03 22:06:36 +02:00
Shaun Ruffell
ae5e44c558 CmdSummary: Show recent intervals that start later in day than first interval with :all
It was possible for `summary` command, when used with the :all hint, to
skip over any intervals that start later than the first interval in the
database.

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-09-03 21:56:22 +02:00
Thomas Lauf
4aa8489243 Prepare for release 1.4.2
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 20:30:33 +02:00
Thomas Lauf
04da28fadd Enter commit hash for release 1.4.1
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 20:27:29 +02:00
Thomas Lauf
8cca35dff2 Remove deleted file COPYING from CMakeLists.txt
-Closes #377

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 20:18:25 +02:00
Thomas Lauf
40617b094f Update project version
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 20:16:42 +02:00
Thomas Lauf
6747beb296 Prepare for release 1.4.1
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 19:30:56 +02:00
Thomas Lauf
86024b1a41 Set upper limit for summary table to now if both filter and latest interval are open
- Closes #378

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 19:26:30 +02:00
Thomas Lauf
b9d3b284fa Enter commit hash for release 1.4.0
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 19:26:30 +02:00
Thomas Lauf
2447c38172 Prepare for release 1.4.0
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 13:22:39 +02:00
Thomas Lauf
4e8cb8b90e Drop NEWS, COPYING
- Content of `NEWS` is either already in README.md or file just echoes Timewarriors release notes on github
- `COPYING` is identical to `LICENSE`

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>

fixup! Drop 'NEWS'

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 11:27:50 +02:00
Thomas Lauf
87c91b1f79 Update copyright
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 11:27:50 +02:00
Thomas Lauf
63b5770a74 Update AUTHORS, ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-29 11:00:07 +02:00
Thomas Lauf
1308a124bb Replace Fedora 28 and Fedora 29 by Fedora 31 and Fedora 32
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-23 12:54:22 +02:00
Thomas Lauf
60c138b959 Adding ubuntu20.04 to the test zoo
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-23 12:27:16 +02:00
Thomas Lauf
bc7c62ecf4 Fix indentation
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-23 12:24:40 +02:00
Thomas Lauf
ac9998f01c Add docker test images for CentOS 7 and 8
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-22 12:52:40 +02:00
Thomas Lauf
ffe329cd30 Adding centos8 to the test zoo
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-22 11:39:32 +02:00
Thomas Lauf
e451a135e2 Add test for command track with future time
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-21 23:04:03 +02:00
Thomas Lauf
1ba3ee8a32 Block future times for command continue
- This is meant as a temporary fix until Timewarrior can handle intervals regardless of start time
- Closes #364

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-21 23:03:53 +02:00
Shaun Ruffell
45eec2f7a0 Add test for command continue with future time
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-21 23:03:53 +02:00
Thomas Lauf
8b9389b5ad Add hash for version 1.3.0
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-21 21:41:20 +02:00
Shaun Ruffell
9d43727c09 Use only the current interval duration when summarizing
There are several instances where the "total" reported in the interval
summary is confusing because the summarize function would walk backward
and add all intervals with the same set of tags.

Closes #248 and #308

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-08-21 21:41:20 +02:00
Thomas Lauf
7405d2be96 Drop empty intervals during overlap resolution
- Closes #372

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-21 18:08:13 +02:00
Thomas Lauf
8daf11328d Add starting times to start command
- It seems that recent changes made the `stop` command faster such that these tests aborted with "The end of a date range must be after the start."

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-19 15:41:52 +02:00
Thomas Lauf
55ea1aafce Fix typo
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-19 15:41:52 +02:00
Thomas Lauf
abf4784aba Command start now hints for command continue if called with ids
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-19 15:41:52 +02:00
Thomas Lauf
e69bd4b03b Coding style: Add spaces
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-19 15:41:52 +02:00
Thomas Lauf
3feba61459 Rework stop command
- Compute the set difference between the latest interval's tag set and the given tag set
- If no tags given, the difference is set to `{}`
- In case of an empty difference, close the current open interval, apply exclusions and update the database
- In case of a non-empty difference, just add a new open interval and let the overlap resolution do the job...

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-19 15:41:52 +02:00
Thomas Lauf
96aaa71eb4 Move validation for tag set up
- The given set of tags must be a subset of the latest interval's tag set (this includes the empty case)
- If not a subset, throw an error and show the first non-matching tag
- This also prevents the stop command from doing any work on the database
- Closes #280

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-19 15:41:52 +02:00
Thomas Lauf
5b1c77b8aa Move validation of filter range up
- Use default range starting at `now`
- Add check for no datetime given (rare case of e.g. `timew stop :all`)

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-19 15:41:52 +02:00
Thomas Lauf
990e0772d0 Add tests for stop command
- Stop with no datetime (rare case of e.g. `timew stop :all`)
    - `stop` with tag after `start` without tags
2020-08-19 15:41:34 +02:00
Thomas Lauf
7858bf4be8 Inline cli.getIds ()
- It is only used to hint for the modify command if any ids are given

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-19 14:10:57 +02:00
Thomas Lauf
11877d3fff Restrict application of exclusions to range before now for open intervals
- Closes #370

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-18 18:58:05 +02:00
Shaun Ruffell
26fdebf754 CmdReport: Throw error if report fails to produce output
Ideally this would be fixed in libshared.

See GothenburgBitFactory/libshared#27

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-08-17 13:05:33 +02:00
Shaun Ruffell
670fc289e9 CmdDiagnostics: Show per-file error messages.
I had a broken symbolic link in my extensions directory. When I ran
`timew diag` it would simply print on the screen:

```
stat error 2: No such file or directory
```

After this change, there is more context information about the source of
the error:

```
  timew 1.3.0
         Platform: Linux

  Compiler:
          Version: 7.5.0
             Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
       Compliance: C++11

  Build Features
            Built: Aug 14 2020 05:57:06
           Commit: 6fe15d26
            CMake: 3.10.2
       Build type: Debug

  Configuration
    TIMEWARRIORDB: -
              Cfg: /home/sruffell/.timewarrior/timewarrior.cfg (-rw- 0 bytes)
         Database: /home/sruffell/.timewarrior (drwx 4096 bytes)
          $EDITOR: vim
      Color theme: Built-in default
                   00 01 02 03 04 05 06 07 08 09 10 11 12

  Extensions
         Location: /home/sruffell/.timewarrior/extensions (drwx 4096 bytes)
                   /home/sruffell/.timewarrior/extensions/tsheet (stat error 2: No such file or directory)
```

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-08-17 13:05:33 +02:00
Thomas Lauf
0137703512 Update libshared
- Version containing #26 which fixes a compilation error on FreeBSD
- Related to #258

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-16 16:04:49 +02:00
Thomas Lauf
02491f8153 Restore behaviour for adding a new interval with same tag set
- Closes #351

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-14 22:33:16 +02:00
Thomas Lauf
ea33b29986 Coding style: add spaces
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-13 10:12:16 +02:00
Thomas Lauf
e57fadc7a7 Fix comments
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-13 10:12:16 +02:00
Thomas Lauf
0db5598aa6 Add brackets to if-/for-statement
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-08-13 10:12:16 +02:00