]> git.madduck.net Git - etc/taskwarrior.git/log

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

etc/taskwarrior.git
9 years agoTaskWarrior: Respect the data location set in users taskrc
Tomas Babej [Sun, 22 Mar 2015 19:10:28 +0000 (20:10 +0100)]
TaskWarrior: Respect the data location set in users taskrc

9 years agotests: Use sys.version_info instead of sys.vesion to compare versions
Tomas Babej [Sun, 22 Mar 2015 16:38:24 +0000 (17:38 +0100)]
tests: Use sys.version_info instead of sys.vesion to compare versions

9 years agotests: Remove duplicate test
Tomas Babej [Sun, 22 Mar 2015 15:58:47 +0000 (16:58 +0100)]
tests: Remove duplicate test

9 years agotests: Python 2.6. does not support timedelta.total_seconds, add workaround
Tomas Babej [Sun, 22 Mar 2015 15:58:38 +0000 (16:58 +0100)]
tests: Python 2.6. does not support timedelta.total_seconds, add workaround

9 years agotests: Skip filtering by string datetime test for TW < 2.4.0
Tomas Babej [Sun, 22 Mar 2015 14:50:12 +0000 (15:50 +0100)]
tests: Skip filtering by string datetime test for TW < 2.4.0

9 years agoSerializingObject: TW 2.4.0 does have task calc
Tomas Babej [Sun, 22 Mar 2015 14:44:39 +0000 (15:44 +0100)]
SerializingObject: TW 2.4.0 does have task calc

9 years agotests: Compute 4 months shift in a more portable way (TW does not do daylight shifts)
Tomas Babej [Sun, 22 Mar 2015 14:42:43 +0000 (15:42 +0100)]
tests: Compute 4 months shift in a more portable way (TW does not do daylight shifts)

9 years agotests: Add test for modifiying a large number of tasks at once
Tomas Babej [Sun, 22 Mar 2015 14:32:54 +0000 (15:32 +0100)]
tests: Add test for modifiying a large number of tasks at once

9 years agoTaskWarrior: Allow editing a large number of tasks at once
Tomas Babej [Sun, 22 Mar 2015 14:32:33 +0000 (15:32 +0100)]
TaskWarrior: Allow editing a large number of tasks at once

9 years agoTaskWarrior: Only strip trailing whitespace from output
Tomas Babej [Sun, 22 Mar 2015 14:04:35 +0000 (15:04 +0100)]
TaskWarrior: Only strip trailing whitespace from output

Leading whitespace can be used to center a heading in certain reports.

9 years agotests: Add tests for using TW-formatted strings as localized datetime values
Tomas Babej [Thu, 19 Mar 2015 21:41:07 +0000 (22:41 +0100)]
tests: Add tests for using TW-formatted strings as localized datetime values

9 years agotests: Remove trailing whitespace
Tomas Babej [Thu, 19 Mar 2015 19:50:56 +0000 (20:50 +0100)]
tests: Remove trailing whitespace

9 years agoSerializingObject: Restrict usage of 'task calc' conversion for those TW versions...
Tomas Babej [Wed, 18 Mar 2015 23:03:34 +0000 (00:03 +0100)]
SerializingObject: Restrict usage of 'task calc' conversion for those TW versions that contain it

9 years agoSerializingObject: Make all SerializingObjects have access to a instance of TaskWarrior
Tomas Babej [Wed, 18 Mar 2015 22:37:11 +0000 (23:37 +0100)]
SerializingObject: Make all SerializingObjects have access to a instance of TaskWarrior

9 years agoSerializedObject: Accept taskwarrior datetime syntax as string and convert it to...
Tomas Babej [Wed, 18 Mar 2015 22:35:31 +0000 (23:35 +0100)]
SerializedObject: Accept taskwarrior datetime syntax as string and convert it to datetime using task calc

9 years agotests: Use non-existent taskrc with tests
Tomas Babej [Tue, 17 Mar 2015 22:22:46 +0000 (23:22 +0100)]
tests: Use non-existent taskrc with tests

9 years agoTaskWarrior: Do not expand data_location twice
Tomas Babej [Tue, 17 Mar 2015 22:22:01 +0000 (23:22 +0100)]
TaskWarrior: Do not expand data_location twice

9 years agoDocs: Update docs about reading .taskrc
Tomas Babej [Tue, 17 Mar 2015 22:21:16 +0000 (23:21 +0100)]
Docs: Update docs about reading .taskrc

9 years agoTaskWarrior: Use default .taskrc
Tomas Babej [Tue, 17 Mar 2015 22:19:05 +0000 (23:19 +0100)]
TaskWarrior: Use default .taskrc

Currently, to make UDAs (adding/modifying tasks with UDA, filtering by
UDAs) one needs to update the TaskWarrior's config, as described in
docs:

http://tasklib.readthedocs.org/en/latest/#working-with-udas

This is a little bit tedious, since every application that uses tasklib,
and wants to support UDAs, needs to either parse the .taskrc file
itself, or have user specify the UDA configuration redundantly by some
other mechanism.

Also, by using rc:/ we are using default values for other config
settings, which may take users by surprise (i.e. if user sets a custom
value for recurrence.limit, and then any tasklib call will generate
more/less recurrence tasks than he wants to see).

This commit changes the approach and makes .taskrc the default
config file location.

9 years agotravis: Bump tested TaskWarrior versions
Tomas Babej [Sun, 15 Mar 2015 20:07:32 +0000 (21:07 +0100)]
travis: Bump tested TaskWarrior versions

9 years agoTaskFilter: Fix typo when normalizing input
Tomas Babej [Sun, 15 Mar 2015 16:13:29 +0000 (17:13 +0100)]
TaskFilter: Fix typo when normalizing input

9 years agoTaskFilter: Limit enforcing recurrence by version
Tomas Babej [Wed, 11 Mar 2015 07:18:19 +0000 (08:18 +0100)]
TaskFilter: Limit enforcing recurrence by version

9 years agoMerge branch 'release/0.9.0' into develop
Rob Golding [Fri, 20 Feb 2015 20:53:29 +0000 (20:53 +0000)]
Merge branch 'release/0.9.0' into develop

9 years agoBump version for 0.9.0
Rob Golding [Fri, 20 Feb 2015 20:53:20 +0000 (20:53 +0000)]
Bump version for 0.9.0

9 years agoThe next version will be 0.9.0
Rob Golding [Fri, 20 Feb 2015 20:52:48 +0000 (20:52 +0000)]
The next version will be 0.9.0

9 years agotests: Implement workaround around python2.6 missing SkipTest
Tomas Babej [Fri, 20 Feb 2015 18:46:23 +0000 (19:46 +0100)]
tests: Implement workaround around python2.6 missing SkipTest

9 years agotests: Skip invalid tests for older version of TaskWarrior
Tomas Babej [Fri, 20 Feb 2015 17:54:57 +0000 (18:54 +0100)]
tests: Skip invalid tests for older version of TaskWarrior

9 years agotests: Add tests for completing, deleting and starting tasks
Tomas Babej [Fri, 20 Feb 2015 17:15:59 +0000 (18:15 +0100)]
tests: Add tests for completing, deleting and starting tasks

9 years agoSerializingObject: Add serializers, normalizers and deserializers for start and end...
Tomas Babej [Fri, 20 Feb 2015 17:15:08 +0000 (18:15 +0100)]
SerializingObject: Add serializers, normalizers and deserializers for start and end attributes

9 years agoTask: Refresh all relevant attributes in done,start and delete methods
Tomas Babej [Fri, 20 Feb 2015 16:52:30 +0000 (17:52 +0100)]
Task: Refresh all relevant attributes in done,start and delete methods

9 years agotests: Add dummy tests for filtering
Tomas Babej [Fri, 20 Feb 2015 16:42:28 +0000 (17:42 +0100)]
tests: Add dummy tests for filtering

9 years agoTask: Add support for start command
Tomas Babej [Fri, 20 Feb 2015 16:42:09 +0000 (17:42 +0100)]
Task: Add support for start command

9 years agotests: Test task normalizers in more sensible way
Tomas Babej [Fri, 20 Feb 2015 14:56:14 +0000 (15:56 +0100)]
tests: Test task normalizers in more sensible way

9 years agotests: Amend hook tests to pass the taskwarrior instance explicitly
Tomas Babej [Fri, 20 Feb 2015 14:54:43 +0000 (15:54 +0100)]
tests: Amend hook tests to pass the taskwarrior instance explicitly

9 years agoTaskWarrior: Output whole stderr content as TaskWarriorException on failure
Tomas Babej [Fri, 20 Feb 2015 13:11:55 +0000 (14:11 +0100)]
TaskWarrior: Output whole stderr content as TaskWarriorException on failure

The reason for this change is that TaskWarrior outputs all footnotes and
errors in stderr, and, as a result, we get meaningless errors like:

Configuration override rc.data.location=/tmp/random

9 years agoTask: Autmoatically detect TaskWarrior instance in from_input
Tomas Babej [Fri, 20 Feb 2015 13:11:32 +0000 (14:11 +0100)]
Task: Autmoatically detect TaskWarrior instance in from_input

9 years agoSerializingObject: Detect string type using six properly
Tomas Babej [Fri, 20 Feb 2015 11:18:35 +0000 (12:18 +0100)]
SerializingObject: Detect string type using six properly

9 years agoSerializingObject: Have more helpful error message in normalize_uuid
Tomas Babej [Fri, 20 Feb 2015 11:13:31 +0000 (12:13 +0100)]
SerializingObject: Have more helpful error message in normalize_uuid

9 years agonormalizers: Handle None properly in all normalizers
Tomas Babej [Fri, 20 Feb 2015 10:49:22 +0000 (11:49 +0100)]
normalizers: Handle None properly in all normalizers

9 years agotravis: Update tested versions of TaskWarrior
Tomas Babej [Tue, 17 Feb 2015 20:35:43 +0000 (21:35 +0100)]
travis: Update tested versions of TaskWarrior

9 years agodocs: Fix copy-paste error
Tomas Babej [Sun, 8 Feb 2015 18:44:06 +0000 (19:44 +0100)]
docs: Fix copy-paste error

9 years agocoverage: Configure coveralls to not include test files
Tomas Babej [Sat, 7 Feb 2015 20:10:48 +0000 (21:10 +0100)]
coverage: Configure coveralls to not include test files

9 years agoReadOnlyDictView: Fix python3 issues, ditch the has_key method
Tomas Babej [Sat, 7 Feb 2015 13:16:01 +0000 (14:16 +0100)]
ReadOnlyDictView: Fix python3 issues, ditch the has_key method

9 years agoDocs: Document the original attribute access to the task object
Tomas Babej [Sat, 7 Feb 2015 12:59:38 +0000 (13:59 +0100)]
Docs: Document the original attribute access to the task object

9 years agoTests: Add tests for ReadOnlyDictView
Tomas Babej [Sat, 7 Feb 2015 12:50:53 +0000 (13:50 +0100)]
Tests: Add tests for ReadOnlyDictView

9 years agoSerializingObject: Document purpose of normalizing methods
Tomas Babej [Sat, 7 Feb 2015 12:50:33 +0000 (13:50 +0100)]
SerializingObject: Document purpose of normalizing methods

9 years agoTaskResource: Provide read-only view on _original_data via original attribute
Tomas Babej [Sat, 7 Feb 2015 12:50:08 +0000 (13:50 +0100)]
TaskResource: Provide read-only view on _original_data via original attribute

9 years agoReadOnlyDictView: Add ReadOnlyDictView which allows read-only access to a given dict
Tomas Babej [Sat, 7 Feb 2015 12:49:29 +0000 (13:49 +0100)]
ReadOnlyDictView: Add ReadOnlyDictView which allows read-only access to a given dict

9 years agoTests: Add test for filtering with empty UUID
Tomas Babej [Sat, 7 Feb 2015 11:35:47 +0000 (12:35 +0100)]
Tests: Add test for filtering with empty UUID

9 years agoSerializingObject: Make sure UUID is properly validated
Tomas Babej [Sat, 7 Feb 2015 11:35:31 +0000 (12:35 +0100)]
SerializingObject: Make sure UUID is properly validated

9 years agoTests: Test generation of recurrent tasks
Tomas Babej [Sat, 7 Feb 2015 11:19:55 +0000 (12:19 +0100)]
Tests: Test generation of recurrent tasks

9 years agoTaskWarrior: Enforce recurrent tasks upon each evaluation of filter
Tomas Babej [Sat, 7 Feb 2015 11:19:41 +0000 (12:19 +0100)]
TaskWarrior: Enforce recurrent tasks upon each evaluation of filter

9 years agoTaskWarrior: Add keyword argument to supress failure in execute_command
Tomas Babej [Sat, 7 Feb 2015 11:18:59 +0000 (12:18 +0100)]
TaskWarrior: Add keyword argument to supress failure in execute_command

9 years agoSetup: Add tzlocal to required packages
Tomas Babej [Fri, 6 Feb 2015 22:29:30 +0000 (23:29 +0100)]
Setup: Add tzlocal to required packages

9 years agoTests: Add tests for timezone aware datetimes
Tomas Babej [Fri, 6 Feb 2015 21:50:06 +0000 (22:50 +0100)]
Tests: Add tests for timezone aware datetimes

9 years agoTests: Update tests for localized timestamps
Tomas Babej [Fri, 6 Feb 2015 19:55:57 +0000 (20:55 +0100)]
Tests: Update tests for localized timestamps

9 years agoTask: Leverage normalizers for localized datetime objects
Tomas Babej [Fri, 6 Feb 2015 19:44:11 +0000 (20:44 +0100)]
Task: Leverage normalizers for localized datetime objects

9 years agoAdd documentation for localized timezones
Tomas Babej [Fri, 6 Feb 2015 19:20:35 +0000 (20:20 +0100)]
Add documentation for localized timezones

9 years agoSetup: Add pytz as dependency
Tomas Babej [Thu, 8 Jan 2015 06:11:42 +0000 (07:11 +0100)]
Setup: Add pytz as dependency

9 years agoTask: Use localized timestamps in UTC
Tomas Babej [Thu, 8 Jan 2015 01:16:06 +0000 (02:16 +0100)]
Task: Use localized timestamps in UTC

9 years agoSerializingObject: Add normalizers for normalizing user input
Tomas Babej [Fri, 6 Feb 2015 19:33:47 +0000 (20:33 +0100)]
SerializingObject: Add normalizers for normalizing user input

9 years agoTaskResource: Do not serialize annotations as a list in a string
Tomas Babej [Wed, 21 Jan 2015 06:51:02 +0000 (07:51 +0100)]
TaskResource: Do not serialize annotations as a list in a string

9 years agoTests: Add tests for serializing annotations
Tomas Babej [Tue, 20 Jan 2015 22:36:07 +0000 (23:36 +0100)]
Tests: Add tests for serializing annotations

9 years agoSerializingObject: Add missing serialize_annotations method
Tomas Babej [Tue, 20 Jan 2015 22:35:42 +0000 (23:35 +0100)]
SerializingObject: Add missing serialize_annotations method

9 years agoTaskResource: Move some Task non-specigic methods to TaskResource
Tomas Babej [Tue, 20 Jan 2015 20:27:52 +0000 (21:27 +0100)]
TaskResource: Move some Task non-specigic methods to TaskResource

9 years agoTask: Do not require confirmation for modifying recurrent tasks
Tomas Babej [Mon, 19 Jan 2015 20:21:47 +0000 (21:21 +0100)]
Task: Do not require confirmation for modifying recurrent tasks

9 years agoMerge branch 'release/0.8.0' into develop
Rob Golding [Mon, 19 Jan 2015 08:52:40 +0000 (08:52 +0000)]
Merge branch 'release/0.8.0' into develop

9 years agoBump version for 0.8.0
Rob Golding [Mon, 19 Jan 2015 08:52:15 +0000 (08:52 +0000)]
Bump version for 0.8.0

9 years agoThe next version will be 0.8.0
Rob Golding [Mon, 19 Jan 2015 08:51:54 +0000 (08:51 +0000)]
The next version will be 0.8.0

9 years agoRevert "Fix missing import"
Tomas Babej [Sat, 17 Jan 2015 12:25:11 +0000 (13:25 +0100)]
Revert "Fix missing import"

This reverts commit 1836a32642fc02d23befe75fc7c16ae43e03e9e0.

This import was not missing on develop branch.

9 years agoFix missing import
Tomas Babej [Sat, 17 Jan 2015 12:04:57 +0000 (13:04 +0100)]
Fix missing import

9 years agoMerge pull request #29 from tbabej/bugfix
Tomas Babej [Sat, 17 Jan 2015 11:56:48 +0000 (12:56 +0100)]
Merge pull request #29 from tbabej/bugfix

Minor bugs

9 years agoTask: Fix serialize_depends behaviour
Tomas Babej [Sat, 17 Jan 2015 11:37:38 +0000 (12:37 +0100)]
Task: Fix serialize_depends behaviour

9 years agoTests: Add tests for ensuring serializer and desializer behaviour
Tomas Babej [Sat, 17 Jan 2015 11:36:36 +0000 (12:36 +0100)]
Tests: Add tests for ensuring serializer and desializer behaviour

9 years agoTask: Fix incorrect timestamp serializer
Tomas Babej [Sat, 17 Jan 2015 10:59:05 +0000 (11:59 +0100)]
Task: Fix incorrect timestamp serializer

9 years agoTask: Clean up default formatting of the attributes as arguments for modify command
Tomas Babej [Sat, 17 Jan 2015 10:51:34 +0000 (11:51 +0100)]
Task: Clean up default formatting of the attributes as arguments for modify command

In the current version, we were not properly making difference between value
which is False when converting to boolean, and proper empty value. Thus user
would be unable to save legitimate False-like values into TW, like numeric 0.

9 years agoMerge pull request #24 from tbabej/hooks2
Tomas Babej [Sat, 17 Jan 2015 10:39:24 +0000 (11:39 +0100)]
Merge pull request #24 from tbabej/hooks2

Better hook support

9 years agoDocs: Provide documentation for using tasklib in hooks scripts
Tomas Babej [Sat, 17 Jan 2015 10:14:16 +0000 (11:14 +0100)]
Docs: Provide documentation for using tasklib in hooks scripts

9 years agoTask: Make sure empty values are not passed to TW via hooks
Tomas Babej [Sat, 17 Jan 2015 09:46:05 +0000 (10:46 +0100)]
Task: Make sure empty values are not passed to TW via hooks

9 years agoTask: Provide automatic hook type detection
Tomas Babej [Fri, 16 Jan 2015 23:24:36 +0000 (00:24 +0100)]
Task: Provide automatic hook type detection

9 years agoTask: Change export_data() to expect non-serialized values in self._data dict
Tomas Babej [Fri, 16 Jan 2015 07:06:23 +0000 (08:06 +0100)]
Task: Change export_data() to expect non-serialized values in self._data dict

9 years agoTask: Make modified property non-private
Tomas Babej [Thu, 15 Jan 2015 21:08:13 +0000 (22:08 +0100)]
Task: Make modified property non-private

This is actually useful to have open to public. For modify hooks,
you get two lines of input(original and modified version), so it's
quite useful to have a convenient way of checking whether the
task you got is modified or not.

9 years agoTests: Add tests for hook support
Tomas Babej [Thu, 15 Jan 2015 21:02:37 +0000 (22:02 +0100)]
Tests: Add tests for hook support

9 years agoMerge pull request #25 from tbabej/deserialized-data-dict
Tomas Babej [Thu, 15 Jan 2015 21:26:02 +0000 (22:26 +0100)]
Merge pull request #25 from tbabej/deserialized-data-dict

Make sure modified fields were actually modified

9 years agoTask: Do not hardcode sys.stdin as input source for hooks
Tomas Babej [Thu, 15 Jan 2015 21:02:17 +0000 (22:02 +0100)]
Task: Do not hardcode sys.stdin as input source for hooks

9 years agoTask: Add comment to stress importance of refreshing after save
Tomas Babej [Sun, 11 Jan 2015 14:08:00 +0000 (15:08 +0100)]
Task: Add comment to stress importance of refreshing after save

9 years agoTask: Remove spaces when dumping the Task JSON
Tomas Babej [Thu, 8 Jan 2015 03:09:30 +0000 (04:09 +0100)]
Task: Remove spaces when dumping the Task JSON

9 years agoTask: Add support for creating Task objects in hook scripts
Tomas Babej [Thu, 8 Jan 2015 00:56:29 +0000 (01:56 +0100)]
Task: Add support for creating Task objects in hook scripts

9 years agoTests: Add test for _modified_fields not affected by reading
Tomas Babej [Thu, 15 Jan 2015 20:56:12 +0000 (21:56 +0100)]
Tests: Add test for _modified_fields not affected by reading

9 years agoTask: Do not yield corner case of fake removals as modified field
Tomas Babej [Thu, 15 Jan 2015 20:55:20 +0000 (21:55 +0100)]
Task: Do not yield corner case of fake removals as modified field

9 years agoMerge pull request #19 from robgolding63/deserialized-data-dict
Tomas Babej [Thu, 15 Jan 2015 15:13:25 +0000 (16:13 +0100)]
Merge pull request #19 from robgolding63/deserialized-data-dict

Store deserialized data in Task._data

9 years agoRestore _update_data and only_fields, and add a test for race conditions
Rob Golding [Thu, 15 Jan 2015 14:16:07 +0000 (14:16 +0000)]
Restore _update_data and only_fields, and add a test for race conditions

9 years agoUse six.string_types over basestring for Python 3 compatibility
Rob Golding [Thu, 15 Jan 2015 13:41:43 +0000 (13:41 +0000)]
Use six.string_types over basestring for Python 3 compatibility

9 years agoMerge branch 'develop' into deserialized-data-dict
Rob Golding [Thu, 15 Jan 2015 13:40:47 +0000 (13:40 +0000)]
Merge branch 'develop' into deserialized-data-dict

Conflicts:
tasklib/task.py

9 years agoMerge branch 'release/0.7.1' into develop
Rob Golding [Thu, 15 Jan 2015 11:46:20 +0000 (11:46 +0000)]
Merge branch 'release/0.7.1' into develop

9 years agoBump version for 0.7.1
Rob Golding [Thu, 15 Jan 2015 11:46:06 +0000 (11:46 +0000)]
Bump version for 0.7.1

9 years agoThe next version will be 0.7.1
Rob Golding [Thu, 15 Jan 2015 11:45:42 +0000 (11:45 +0000)]
The next version will be 0.7.1

9 years agoMerge pull request #21 from tbabej/task_compatibility
Rob Golding [Thu, 15 Jan 2015 11:44:46 +0000 (11:44 +0000)]
Merge pull request #21 from tbabej/task_compatibility

Task: Do not escape empty values in quotes when formatting by default

9 years agoMerge pull request #22 from tbabej/update_badge
Rob Golding [Thu, 15 Jan 2015 11:44:39 +0000 (11:44 +0000)]
Merge pull request #22 from tbabej/update_badge

Readme: Fix travis badge on the develop branch

9 years agoReadme: Fix travis badge on the develop branch
Tomas Babej [Tue, 13 Jan 2015 20:03:03 +0000 (21:03 +0100)]
Readme: Fix travis badge on the develop branch