Commit graph

4747 commits

Author SHA1 Message Date
Paul Beckingham
468da9dcde Parser
- Sets proper ambiguity required during Parser::initialize.
2014-07-03 18:17:35 -04:00
Paul Beckingham
a04df10d11 TW-1267
- TW-1267 If default.project is defined it's not possible to add a task without
          a project (thanks to Renato Alves).
2014-07-03 17:41:39 -04:00
Paul Beckingham
5e1f596200 Unit Tests
- Added a 'diag' method to the Python test class.
2014-07-03 17:38:41 -04:00
Paul Beckingham
7a37317526 Unit Tests
- Corrected mistake made earlier when assuming the first test was a 'control'.
  It was not.
2014-07-03 17:37:30 -04:00
Paul Beckingham
c8f2b5a858 Unit Tests
- Fixed flapping in bug.932.t. The problem was a regex that assumeѕ the age of
  the task was < 1second, but sometimes, when the creation of a task and the
  reporting of a task crossed a 1-second boundary, the age shows up as '1s'.
  With the regex now more permissive, the problem is gone.
2014-07-03 17:19:36 -04:00
Paul Beckingham
58c46bc292 Task
- Now that ::composeF4 guarantees not to write out attributes with blank values,
  we can use blank values to indicate that blanks were specified on the command
  line, and avoid apllication of defaults.
2014-07-03 17:13:26 -04:00
Paul Beckingham
a969d34d21 Unit Tests
- Corrected unit test, which had the wrong expected output.
2014-07-03 16:53:07 -04:00
Paul Beckingham
c5dacd7d78 Legacy
- Addded 'm' to the list of legacy duration formats, for mapping into 'months'.
2014-07-03 16:42:51 -04:00
Paul Beckingham
a46b778101 Unit Tests
- Old unit test was escaping quotes, which is no longer necessary.
2014-07-03 16:36:54 -04:00
Paul Beckingham
9778100d29 Lexer
- When parsing two-character operators ('or') from a string ('ordinary'), the
  lack of boundary between the 'r' and the 'd' now prevents the operator 'or'
  from being recognized.
2014-07-03 16:26:17 -04:00
Paul Beckingham
b6fee35213 Unit Tests
- Corrected bug.calc.t to match current calc debug output.
2014-07-03 15:51:02 -04:00
Paul Beckingham
843f7ce704 Unit Tests
- Corrected Lexer test to use a supported duration.
2014-07-03 15:39:50 -04:00
Paul Beckingham
a3cfc2de7f Filter
- The 'ambiguity' control for Eval was being set *after* the expression was
  parsed, which was useless and misleading.
2014-07-03 15:27:00 -04:00
Paul Beckingham
43daabdb9a Unit Tests
- Modfiied bug.485.t to use supported recurrence period values.
2014-07-03 13:43:14 -04:00
Paul Beckingham
b7c2fd0d9c Legacy
- Now maps unsupported duration values to supported values.
2014-07-03 13:38:18 -04:00
Paul Beckingham
140757cfe1 Unit Tests
- Modified test to account for non-standalone status of certain duration
  values.
2014-07-03 11:44:50 -04:00
Paul Beckingham
fe31d4ee71 Unit Tests
- Added tests for TW-1306.
2014-07-03 11:04:34 -04:00
Paul Beckingham
e5834c8a4f TW-1306
- TW-1306 Arguments before 'add' are ignored.
2014-07-03 10:50:25 -04:00
Paul Beckingham
d6e734b57d TW-128
- TW-128 new helper command; _envs. Actually no, not a new command, but the
  $TASKRC and $TASKDATA environment variables are now show in the 'diag'
  command output.
2014-07-02 00:17:51 -04:00
Paul Beckingham
5413d3172b TW-230, TW-1329
- TW-230 Filter tasks on partial UUIDs (thanks to Paul Kishimoto).
- TW-1329 Short UUIDs (thanks to Benjamin Weber).
2014-07-01 23:56:53 -04:00
Paul Beckingham
e663072088 TW-1336
- TW-1336 Project attribute does not allow whitespace (thanks to Benjamin Weber).
2014-07-01 21:26:13 -04:00
Paul Beckingham
dfe857d5a7 TW-276
- TW-276 Path is wrongly added when using annotate (thanks to Jostein Berntsen).
2014-07-01 21:14:37 -04:00
Paul Beckingham
d850510375 TW-1366
- TW-1366 In diagnostics it's called 'Cert', and in config it's called
  'certificate' (thanks to Jack).
2014-07-01 20:58:15 -04:00
Paul Beckingham
e7c8c0ca2a L10N
- Localized backlog/sync feedback string.
2014-07-01 20:25:33 -04:00
Paul Beckingham
4c65bc049b TW-44
- TW-44 Space handling in dateformat (thanks to Louis-Claude Canon).
2014-07-01 20:17:07 -04:00
Paul Beckingham
82e14c30bc TW-1341
- TW-1341 confirmation config setting should apply to config command as well
  (thanks to Charles Ulrich).
2014-07-01 20:10:45 -04:00
Paul Beckingham
f2a545bc25 Hooks
- First pass at a portable 'popen' implementation.  Thanks to Wim.
2014-07-01 20:02:27 -04:00
Paul Beckingham
b989da7259 TW-1361
- TW-1361 Strange results with complex filter (thanks to Jim B).
2014-07-01 18:02:31 -04:00
Paul Beckingham
e9e93bd92b Unit Tests
- Corrected tests to differentiate between standalone durations and numeric
  leader durations.
2014-07-01 17:23:07 -04:00
Paul Beckingham
5170a842d6 Duration
- Distinguishes between a 'standalone' duration like 'year', and one that
  requires a numeric leader, '2 weeks'.
2014-07-01 17:22:20 -04:00
Leo
9095f47ff3 L10N
- The latest translation update from leowzukw.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-07-01 07:12:28 -04:00
Paul Beckingham
91670e9cb5 Dates
- Named dates now store the raw form as the source, to assist parsing.
2014-06-29 22:18:43 -04:00
Paul Beckingham
c5bde168c4 Unit Tests
- Fixed typo in test.
2014-06-29 22:18:23 -04:00
Paul Beckingham
e17dd13afd Unit Tests
- Added tests for date parsing with and without depletion.
2014-06-29 22:17:52 -04:00
Paul Beckingham
0c0e36993d Date
- Added a new date parse method that indicates the length of the parsed item,
  and does not require Nibbler::depletion.
2014-06-29 22:16:44 -04:00
Paul Beckingham
17ffe3d222 L10N
- French localization (thanks to leowzukw).
2014-06-29 12:35:39 -04:00
Leo
fe02466100 French (fra-FRA) Localization
- The latest translation update from leowzukw.
2014-06-29 12:32:30 -04:00
Paul Beckingham
be6ec99fcb Lexer
- Shut off the depletion requiremeent for lexed dates.
2014-06-29 11:36:51 -04:00
Paul Beckingham
3639226233 Unit Tests
- Added tests for date parsing without the depletion requirement.
2014-06-29 11:12:35 -04:00
Paul Beckingham
3d10dee67d Date
- Formatting for readability.
2014-06-29 11:12:08 -04:00
Paul Beckingham
ecb6adbbeb Date
- Made the buffer depletion requirement optional for dateformat and ISO date
  parsing.
2014-06-29 10:31:52 -04:00
Paul Beckingham
5150e49f67 Lexer
- Legacy date parsing should not permis ISO and epoch inputs.
2014-06-29 09:55:31 -04:00
Paul Beckingham
9b03e8f9f7 Date
- Correctly performs Nibbler save/restore for parse attempts.
2014-06-29 09:54:43 -04:00
Paul Beckingham
92b91a3141 Unit Tests
- Corrected calc output expectations.
2014-06-29 09:37:19 -04:00
Paul Beckingham
65f979cb4f Lexer
- Refactored (step 1) the ISO and Legacy date/duration parsing for lexer state
  machine breakout.
2014-06-29 09:36:27 -04:00
Paul Beckingham
d54afc844c Eval
- Improved formatting for diagnostics.
2014-06-28 12:40:27 -04:00
Paul Beckingham
0c4c665653 Eval
- Diagnostics now represent correct stack size.
2014-06-28 12:35:43 -04:00
Paul Beckingham
80c8daff08 Eval
- Removed Eval diagnostics that dispalyed the wrong type.
2014-06-28 12:33:22 -04:00
Paul Beckingham
d787e1b969 Unit Test
- Removed character (!) from task project name that was causing a _neg_ operator
  to be invoked.
2014-06-27 19:11:02 -04:00
Paul Beckingham
28ed6ae74d Task
- Now recognizeѕ '', "" and <blank> as examples of an attribute values that
  should be cleared.
2014-06-27 19:09:26 -04:00