Commit graph

5588 commits

Author SHA1 Message Date
Paul Beckingham
5dcc415057 CLI
- Implemented ::decomposeModTags.
2014-10-20 01:48:33 -04:00
Paul Beckingham
f2e533d013 CLI
- Implemented ::decomposeModAttributeModifiers.
2014-10-20 01:33:42 -04:00
Paul Beckingham
626354999c CLI
- Implemented ::decomposeModAttribute.
2014-10-20 01:22:49 -04:00
Paul Beckingham
b484abea4a CLI, Filter
- Moved parse tree dump into Context::debug output.
2014-10-20 01:01:27 -04:00
Paul Beckingham
24219e23a1 CLI
- Renamed unsweeten methods to desugar, because they remove syntactic sugar.
2014-10-20 00:35:00 -04:00
Paul Beckingham
caaa07f889 CLI
- Implemented ::unsweetenIDs.
2014-10-20 00:26:00 -04:00
Paul Beckingham
97f302f276 CLI
- Added constructors to match the overloaded ::attribute methods.
2014-10-20 00:22:47 -04:00
Paul Beckingham
c8f49bcafb CLI
- Added comma (,) to the set of acceptable characters for a UUID list.
2014-10-20 00:22:02 -04:00
Paul Beckingham
811d0e029d Parser
- UUIDs were being rejected because the contain commas, which are actually part
  of a UUID list. This meant that 'task $UUID1,$UUID2 info' failed.
2014-10-19 23:54:08 -04:00
Paul Beckingham
7f61bcecca CLI
- Implemented ::unsweetenUUIDs.
2014-10-19 23:42:16 -04:00
Paul Beckingham
60d356f009 CLI
- Stubbed ::unsweetenUUIDs.
2014-10-19 23:18:25 -04:00
Paul Beckingham
c4bb9fbc96 CLI
- Stubbed ::unsweetenIDs.
2014-10-19 23:17:49 -04:00
Paul Beckingham
83ab844ba4 CLI
- ::unsweetenPatterns no longer clobbers non-FILTER args.
2014-10-19 18:19:27 -04:00
Paul Beckingham
f809f2d819 CLI
- ::unsweetenAttributeModifiers no longer clobbers non-FILTER args.
2014-10-19 18:19:09 -04:00
Paul Beckingham
720cc57192 CLI
- ::unsweetenAttributes no longer clobbers non-FILTER args.
2014-10-19 18:18:48 -04:00
Paul Beckingham
f862ad15e6 CLI
- ::unsweetenTags no longer clobbers non-FILTER args.
2014-10-19 18:18:03 -04:00
Paul Beckingham
cd8f7ddac4 CLI
- Can now safely re-analyze command line if something changes. This required a
  ::analzye method to be called late in Context::initialize.
2014-10-19 17:59:51 -04:00
Paul Beckingham
87538589a6 Context
- Setting rc.debug.hooks or rc.debug.parser to non-zero values also sets
  rc.debug=true, otherwise the output is not visible.
2014-10-19 17:34:35 -04:00
Wilhelm Schuermann
cfe267f2e5 Tests
- tw-1441.t now calls runError() with merge_streams disabled.
- Taskwarrior only displays an error for the first file that is not found, so only check one.
2014-10-19 09:50:54 -04:00
Paul Beckingham
d9222606e7 Hooks
- The on-exit hook can now terminate processing.
2014-10-19 01:47:33 -04:00
Paul Beckingham
7895ea0f42 Hooks
- Added safety measure in case of a hook misfire.
- Made debug output consistent.
2014-10-19 01:32:41 -04:00
Paul Beckingham
23e2719e1a TDB2
- Restored blank line for clarity, now that duplicate debug messages are allowed.
2014-10-19 01:31:03 -04:00
Paul Beckingham
d873a15aa7 Context
- Removed the restriction that debug messages must be unique. Because it's
  insane.
2014-10-19 01:30:24 -04:00
Paul Beckingham
7e2582f2b8 Hooks
- Fixed bug where the identifier "on-modify" contained some bogus UTF8.
- Ensured that every input line has a \n.
2014-10-19 00:57:30 -04:00
Paul Beckingham
719e9d242b Hooks
- Bug due to missing reference & in calls to callHookScript.  Dumbass.
2014-10-18 23:59:40 -04:00
Paul Beckingham
f1639e6862 Hooks
- Revised all event functions to use the new callHookScript method, which is
  now common to all events.
2014-10-18 23:47:32 -04:00
Paul Beckingham
d1f6b36ecf Hooks
- Standardized formatting of hook input and output in debug.hooks mode.
2014-10-18 17:26:20 -04:00
Paul Beckingham
8d75d0c7f3 Hooks
- Reduced validation to simply checking that a description attribute is present.
  This is the bare minimum for the Task(const std::string&) contructor.
2014-10-18 17:23:39 -04:00
Paul Beckingham
21bbedbfc5 Hooks
- Now performs a full JSON parse on hook script output before accepting it as a
  task.
2014-10-18 16:59:46 -04:00
Paul Beckingham
b6be1cdc99 Hooks
- Factored out the code that determines if the JSON output from a hook script is
  actually JSON.
2014-10-18 16:55:26 -04:00
Paul Beckingham
5275c0ce60 TW-1441
- TW-1441 task import continues happily if filename doesn't exist.
2014-10-18 14:41:12 -04:00
Renato Alves
18581a6ca4 Unittest - Avoid second exception on framework tracing error
* Prevents masking of the initial exception due to a second one.
2014-10-18 01:29:01 +01:00
Paul Beckingham
171fabbcda CLI
- Corrected comment to include quotes that are necessary for patterns.
2014-10-17 16:32:11 -04:00
Renato Alves
dc4a3e8038 Unittest - dash compatibility on debian/ubuntu 2014-10-17 17:24:50 +01:00
Renato Alves
65b6875846 Unittest - Remove execute bit from template.t and unnecessary comments 2014-10-17 16:42:44 +01:00
Renato Alves
a9c9fbc7df Unittest - Only run tests that have execute bit set 2014-10-17 16:42:44 +01:00
Paul Beckingham
51f08496b5 Lexer
- When parsing '\o/' the state Lexer::typeIdentifierEscape had no exit but a
  successful outcome, and looped.
- Fixed test.
2014-10-16 21:22:34 -04:00
Renato Alves
bb060d5ff8 Unittest - Allow specifying custom timeout for slow commands.
* Useful when testing with big tasks (1000+ annotations) or sync
operations that take longer than 1 second (default)
2014-10-16 20:52:17 +01:00
Renato Alves
b236e78f2e Unittest - Testcase for TW-1438 2014-10-16 20:48:45 +01:00
Renato Alves
cf5c7abd01 Unittest - Workaround race condition when killing slow processes
* In some cases the process finishes normally very close to the timeout
2014-10-16 16:47:10 +01:00
Renato Alves
6facb140a4 Unittest - Test cases for TW-1436 2014-10-16 15:51:39 +01:00
Paul Beckingham
8d359ddd70 CLI
- Implemented ::unsweetenPatterns.
2014-10-16 00:53:59 -04:00
Paul Beckingham
932865d3b5 CLI
- Renamed unsweetenAtts to unsweetenAttributes, unsweetenAttMods to
  unsweetenAttributeModifiers.
2014-10-16 00:39:56 -04:00
Paul Beckingham
0603711aac CLI
- Implemnted ::unsweetenAttMods.
2014-10-16 00:37:48 -04:00
Paul Beckingham
80b385ee93 CLI
- Renamed 'canonical' to 'name', for legacy reasons.
2014-10-16 00:36:52 -04:00
Paul Beckingham
9f8c4e02a7 CLI
- Implemented ::getFilter to extract all the non-PSEUDO, FILTER items.
2014-10-15 07:42:29 -04:00
Paul Beckingham
8afb39dea6 CLI
- Implemented ::unsweetenAtts to resolve syntactic sugar to an expression.
2014-10-15 07:34:29 -04:00
Paul Beckingham
f29b6a4be4 CLI
- Convert ::unsweetenTags from _filter to _args.
2014-10-15 02:34:44 -04:00
Paul Beckingham
ae4272f477 CLI
- When unsweetening tags, preserve the FILTER tag.
2014-10-15 02:33:50 -04:00
Paul Beckingham
8dd9082697 CLI
- Categorize has a better definition of FILTER.
2014-10-15 02:32:32 -04:00