- Added special case support for '--version' which bypasses all
configuration. Not documented. For extension prgorams like
'taskhelm', that need to determine whether taskwarrior is
sufficiently current.
- Fixed bug #897, which omitted the UUID field from the 'completed'
report, which is essential if you need to modify a completed task
(thanks to Eli Lev).
- Restored a 'skip' unit test, because it works most of the time, and
only fails during the one end of daylight savings day. Along with
several others.
- Provided sample sqlite3 export script in Python, to serve as a
starting point for anyone wanting to migrate taskwarrior data into
a SQL database. Illustrates JSON parsing and separation of the
relational data.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
- Provided sample sqlite3 export script in Python, to serve as a
starting point for anyone wanting to migrate taskwarrior data into
a SQL database. Illustrates JSON parsing and separation of the
relational data.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
From Owen:
I tried mktime on Darwin an Linux; looks like they both default to UTC if the TZ
environment variable is unset but on Solaris it defaults to the local timezone.
I compiled and ran the tests and checked the behaviour by running:
date
TZ="" date
TZ="UTC" date
On Solaris the first two are in local time and the third is in UTC.
On Darwin and Linux the first one is in local time and the other two are in UTC.
Found this as a reference, too, which mentions the suggested implementation in
'man 3 timegm':
http://stackoverflow.com/questions/6467844/is-c-mktime-different-on-windows-and-gnu-linux
Signed-off-by: Paul Beckingham <paul@beckingham.net>
- Removed backlog file processing, which slows down processing. When
2.1 has taskd support, the backlog will be cleared, but until then there
is no point in accumulating transactions.
- Possible fix for bug #892, which I cannot replicate anyway. This fix
involves testing my suspicion that std::map autovivifies via
std::map::operator[], which is not nice. Will ask Dmitriy to confirm.
- Added indentTree function that will provide the basis for a new 'projects'
command, and potentially more. Includes unit tests. Based on a patch from
Ralph Bean.
- Removed unnecessary definitions of max() and min(), replaced existent calls
with std::max(). Precursor to Bugfix #887.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
- Added a coefficient for ageing which is the increase (or decrease)
of urgency per day. The calculated urgency offset due to ageing
can be limited by setting urgency.age.max.
- Fixed bug that was not properly evaluating cases where recurrence was
being removed from a task.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
- Fixed an odd bug in the unit tests. If today is the 14th of the month,
then subtracting 14 * 86_400 from the current time results in a date that
is in the prior month. Except of course, for one month following the shift
from summer time to standard time, when the test is run between 11:00pm and
midnight. The reverse happens in the spring.