Commit graph

319 commits

Author SHA1 Message Date
Tomas Babej
cc324fdb8d validate: Pending tasks cannot have end attribute set 2016-03-22 19:33:24 -04:00
Paul Beckingham
eb09df0e6a TD-64: sync conflict deleted all annotations of the task
- Thanks to Markus Beppler, Konstantin Vorobyev.
2016-02-28 11:09:00 -05:00
Paul Beckingham
2d20f4d57b Cleanup: Converted all sprintf to snprintf 2016-02-25 00:19:38 -05:00
Paul Beckingham
29a7837fda TD-104: Unrecognized taskwarrior file format
- Thanks to Jeremy John Reeder, Reg.
2016-02-21 10:13:21 -05:00
Paul Beckingham
b61471ca0e TW-1710: Setting wait date on status:completed / status:deleted
- Thanks to Daniel Shahaf.
2016-02-02 23:24:06 -05:00
Paul Beckingham
8275181022 Task: ::getStatus no longer autovivifies 2016-02-02 23:23:14 -05:00
Paul Beckingham
23ac9895ab TW-1763: Removing the due date of a task with no due date modifies the task
- Thanks to Scott Kostyshak.
2016-02-02 01:03:19 -05:00
Paul Beckingham
ba957344ef Task: Specialized modification code replaced by Column::modify delegate 2016-02-01 01:11:21 -05:00
Paul Beckingham
99aaa4cc80 Task: Prepared Task::modify for switch to delegated Column::modify 2016-01-31 20:05:28 -05:00
Paul Beckingham
7c8b3c9699 Task: Removed dead code, fixed comments 2016-01-31 19:40:13 -05:00
Paul Beckingham
6e56849bce Task: Migrated part of ::modify to ColRecur 2016-01-31 19:28:23 -05:00
Paul Beckingham
f0b9ceb17b Task: Migrated part of ::modify to ColTags 2016-01-31 17:23:19 -05:00
Paul Beckingham
c6f9d2c4b2 Task: Renamed modCount to mods, we don't need to count them 2016-01-31 17:22:19 -05:00
Paul Beckingham
25d4392edf Task: Migrated part of ::modify to ColDepends 2016-01-31 17:04:45 -05:00
Paul Beckingham
15373daf85 Task: Improved CppCoreGuideline compliance 2016-01-31 16:05:00 -05:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Paul Beckingham
f7d0f500fc TW-1481: Unable to assign a completed task as dependency
- Thanks to Tomas Babej.
2015-11-17 13:56:40 -05:00
Paul Beckingham
79189c448c TW-1723: task info causes segfault
- Thanks to Roman Golovin.
- Calls like 'context.columns[name]' autovivify the key 'name' with a default
  ctor value, which ends up polluting the context.columns map with every unique
  attribute name, which is a lot of 'annotation_nnnnnnnnnn' attributes.
2015-11-15 12:57:26 -05:00
Paul Beckingham
9415f62482 Task: Conditional compilation allows Taskserver to reuse code 2015-11-08 17:03:05 -05:00
Wilhelm Schuermann
8f8ad813cd Task: Remove std::map inheritance, clean up interface
- Make the Task object's interface more explicit by removing the
  std::map inheritance.
- Using this more explicit interface, remove unneeded ctors in order to
  allow the compiler to "Do The Right Thing"(tm).
  This leads to a performance improvement of 12% in the "add"
  performance test, and 7% for "import".
2015-11-04 20:33:52 +01:00
Paul Beckingham
c248a32cab Task: Removed unnecessary 'this->' 2015-11-04 07:00:52 -05:00
Wilhelm Schuermann
80b5a584b7 Task: Reduce temporaries in composeFF4()
- Reducing temporaries leads to 3% performance increase in "import"
  performance test - 6% in "commit", 2% in "other".
2015-11-03 21:35:47 +01:00
Paul Beckingham
def0223afa Revert "Task: Converted to use to_string where appropriate"
This reverts commit 136f849aa8.
2015-11-02 18:45:55 -05:00
Paul Beckingham
261b062369 Revert "Task: Converted from strto* to std::sto*"
This reverts commit d9cf0fb923.
2015-11-02 18:40:20 -05:00
Paul Beckingham
3ab2410df3 Task: Conditional JSON/Task encoding, based on attribute type 2015-11-02 07:54:13 -05:00
Paul Beckingham
d9cf0fb923 Task: Converted from strto* to std::sto* 2015-11-01 21:49:34 -05:00
Paul Beckingham
5c8b7148b4 Task: Moved include to top of list, per flint++ recommendation 2015-11-01 19:59:10 -05:00
Paul Beckingham
ee9d303b10 Task: Removed unnecessary chomp in ::parse 2015-11-01 19:14:41 -05:00
Paul Beckingham
2aa3163451 Task: Use one-step attribute erase 2015-11-01 19:03:04 -05:00
Paul Beckingham
136f849aa8 Task: Converted to use to_string where appropriate 2015-11-01 18:56:50 -05:00
Paul Beckingham
b5c4bf0a6d Performance: Removed unnecessary std::string::substr in high-traffic code 2015-11-01 16:10:49 -05:00
Paul Beckingham
6baff92b5a Column: Removed ::can_modify, which is moot 2015-10-31 11:14:23 -04:00
Paul Beckingham
1cb295ef67 Task: Removed legacy encodings
- &dquot; -> \"
- "  -> '
- &squot; -> '
- , -> ,
- : -> :
2015-10-30 00:12:52 -04:00
Tomas Babej
2d25cf6f59 TW-1704: Task: Use Task::identifier to reference the task
To achieve consistent output, use a helper method to generate a proper
handle - ID for tasks with non-zero ID, UUID otherwise.
2015-10-29 20:00:53 -04:00
Paul Beckingham
1236abc7d5 CmdColumns: Now shows whether a column is modifiable or read only 2015-10-29 14:14:07 -04:00
Paul Beckingham
bb58b796fd Task Data Parsing
- Improved the handling when parsing blank lines and empty task in the data, so
  that instead of the message:

    Taskwarrior no longer supports file format 1, originally used between 27
    November 2006 and 31 December 2007.

  We now see:

    Unrecognized Taskwarrior file format or blank line in data.

- Merged t2.t.cpp into t.t.cpp.
2015-10-23 10:13:38 -04:00
Paul Beckingham
84be60fdca Cleanup: Removed unneeded function 2015-10-16 15:57:12 -04:00
Paul Beckingham
13b8c1a3cc Task: Migrated from Date to ISO8601d 2015-10-04 17:18:31 -04:00
Paul Beckingham
5325efbd07 TW-1700: modify tags behavior changed
- Thanks to David Badura.
2015-09-21 07:28:26 -04:00
Paul Beckingham
f86c9e2096 Task: Added boundary condition requirement 2015-09-19 09:49:22 -04:00
Paul Beckingham
6b69903208 Task: Modified the way UUIDs are validated 2015-09-19 08:56:15 -04:00
Scott Kostyshak
2690d9bdf3 Task: Correct a false-positive warning
- The command "task 1 modify due: wait:2days" gave the following
   output:

    Warning: You have specified that the 'wait' date is after the
    'due' date.

  Now, we check if the due date is zero, in which case the due date is
  being removed.
2015-09-15 17:02:59 -04:00
Paul Beckingham
7a0927effe Task: Project attributes are exempt from DOM expansion 2015-09-07 16:40:32 -04:00
Paul Beckingham
e4132f6a02 CLI2: Expand DOM references in single-token values 2015-09-07 11:49:55 -04:00
Paul Beckingham
58d52a0191 Task: Factored out eval, added eval for tags. 2015-09-06 16:26:05 -04:00
Paul Beckingham
16b8f90048 Task: Removed commented code 2015-09-06 03:05:19 -04:00
Tomas Babej
efab724802 Task: Convince myself Task comparison is implemented correctly 2015-09-05 17:19:13 -04:00
Tomas Babej
6b83945a21 Urgency: Replace 'next' coefficient with configuration entry 2015-09-04 08:10:36 -04:00
Paul Beckingham
4008a64fdd Virtual Tags: New 'PROJECT', 'PRIORITY' and 'LATEST' virtual tags
- Added documentation.
2015-08-31 16:54:18 -04:00
Paul Beckingham
ada6c24789 Virtual Tag: Undocumented, experimental support for 'LATEST' 2015-08-31 12:59:44 -04:00