Commit graph

6839 commits

Author SHA1 Message Date
Paul Beckingham
5d02291077 Merge branch '2.4.5' of ssh://git.tasktools.org/tm/task into 2.4.5 2015-06-30 07:54:22 -04:00
Paul Beckingham
12bec38f12 Filter: Typo (thanks to Peter Rochen) 2015-06-30 07:53:26 -04:00
Paul Beckingham
86ed232348 Lexer: Added ::wasQuoted to determine original quote state 2015-06-28 12:35:06 -04:00
Paul Beckingham
ba65fa67b1 CLI2: ::aliasExpansion now properly observes and propagates TERMINATED args 2015-06-28 00:33:17 -04:00
Paul Beckingham
050aad49f2 Test: Corrected test 2015-06-28 00:15:53 -04:00
Paul Beckingham
239cf2d848 Test: Corrected test 2015-06-27 23:54:45 -04:00
Paul Beckingham
fd8e616076 Test: Corrected test 2015-06-27 23:47:32 -04:00
Paul Beckingham
94b4f2bfba Test: Corrected test 2015-06-27 23:42:24 -04:00
Paul Beckingham
8cc75693a0 CLI2: Some args must avoid lexing
- This now include rc:xxx and rc.xxx.
2015-06-27 23:34:03 -04:00
Paul Beckingham
4820bde41e CmdCalc: Eliminated temporary storage 2015-06-27 23:08:56 -04:00
Paul Beckingham
358223a6b1 Filter: Corrected implementation of ::safety 2015-06-27 21:08:24 -04:00
Paul Beckingham
e0291d35e4 Test: Corrected test 2015-06-27 20:48:03 -04:00
Paul Beckingham
f96a42d8b0 Feature: Error on virtual tag modification attempt
- An attempt to add or remove a virtual tag is now an error (thanks to Scott M).
2015-06-27 18:39:50 -04:00
Paul Beckingham
1824a542f6 CLI2: Obey the terminator and skip Lexing 2015-06-27 17:35:15 -04:00
Paul Beckingham
299ecad49f Tests: Converted to Python 2015-06-27 17:13:48 -04:00
Paul Beckingham
9ece20d635 Test: Changed tests that depended on 'Permanently' being part of the feedback 2015-06-27 16:12:30 -04:00
Paul Beckingham
37e41effde L10N: Removed 'permanently' from deletion notification
- Deletion is not really permanent (thanks to smemsh).
2015-06-27 15:59:02 -04:00
Paul Beckingham
b67b2ccc96 CLI2: Added ::addContextFilter, and supporting processing 2015-06-27 15:53:24 -04:00
Paul Beckingham
7425c8f2ae Test: Removed useless tests
- The args.1.t script contained tests that weren't testing what they
  claimed to test, and are now removed.
2015-06-27 14:35:07 -04:00
Paul Beckingham
14c95dcb3b Tests: Removed Lexer tests for unsupported ISO date formats 2015-06-27 14:20:16 -04:00
Paul Beckingham
98855dc19c Docs: Updated NEWS, task.1 with date changes 2015-06-27 14:14:36 -04:00
Paul Beckingham
4b8fdd0fbe ISO8601: Removed non-extended forms
- Removed support for non-extended forms, which is approximately half of the
  formats.  These include:
    YYYYMMDD
    YYYYWww
    YYYYWwwD
    hhmmѕsZ
    hhmmZ
    hhZ
  and combinations thereof. Essentially all forms that contains run-on sequences
  of integers, without separators. These removed forms will still be supported
  via rc.dateformat.
- Removed unsupported forms from iso8601d.t.cpp.
- Removed unsupported forms from datetime-negative.t, and corrected the tests
  that now succeed.
2015-06-27 13:48:42 -04:00
Paul Beckingham
6f38d531a1 Test: Removed obsolete 'run_all' processing 2015-06-25 23:39:42 -04:00
Paul Beckingham
7b13f57959 Merge branch '2.4.5' of ssh://git.tasktools.org/tm/task into 2.4.5 2015-06-25 23:33:56 -04:00
Paul Beckingham
fcfc1d1a31 ISO8601: Removed ambiguous format support
- Disallows 2-digit times, such as 14 (2pm).  Now requires at least minutes
  included as well. This is likely to need further review, and possible dropping
  of all non-extended date forms (hhmmss, yyyymmdd), otherwise there will always
  be confusion between ID, UUID and ISO8601 dates.
- Removed 2-digit time tests.
2015-06-25 23:20:59 -04:00
Renato Alves
03847ab8ba Test: run_all is now in Python and defaults to parallelizing tests
In addition to the conversion to Python, run_all now defaults to running
all Python tests in parallel, using the same approach previously
available via '--fast'. If desired one can force all tests to run
serially by calling run_all with --serial

A debugging flag was now also included in run_all.  Pass one or more -l
(-l, -ll or -lll) for different levels of debugging information.
2015-06-25 23:36:28 +01:00
Renato Alves
50fa772ce1 Test: problems no longer includes "expected failures" in skipped 2015-06-25 22:34:43 +01:00
Renato Alves
290674d7c1 Tests: problems script now outputs color and optional --summary
The problems script now outputs color on each of the test categories,
following the same rules used by simpletap.

It also now includes a --summary switch which outputs the same short
report seen when using ./run_all.
2015-06-25 18:57:56 +01:00
Paul Beckingham
c0df2b9f70 Test; Converted to Python, removed unnecessary tests 2015-06-24 22:08:58 -04:00
Paul Beckingham
7e8f6eb41e Test: Removed unnecessary import 2015-06-24 21:48:48 -04:00
Paul Beckingham
88b1707b58 CLI2: Commented out implementation of ::desugarFilterPlainArgs
- The algorithm is wrong, and it misidentfies solitary search patterns.
2015-06-24 21:29:56 -04:00
Paul Beckingham
9dcd52fc5b CLI2: Inhibit the identification of IDs if preceeded by an operator 2015-06-24 20:59:27 -04:00
Paul Beckingham
dfe6927f14 CLI: Code removed 2015-06-24 16:33:07 -04:00
Paul Beckingham
bd44193f8d Test: Updated README 2015-06-24 16:17:38 -04:00
Renato Alves
a7fa29fb65 Tests: merge op_* to operators.t and convert to Python 2015-06-24 20:12:49 +01:00
Renato Alves
4164c8184b Tests: bug.489 merged with filter.t 2015-06-24 20:12:49 +01:00
Paul Beckingham
8d8f2f1d95 Tests: Relocated tests to eliminate a script
- Relocated (relevant) tests from bug.concat.t to uda_orphan.t, which yields
  better grouping, and allows the deletion of bug.concat.t, which contains
  tests that are no longer relevant.
2015-06-24 13:31:38 -04:00
Paul Beckingham
737cb23546 CLI2: Eliminated CLI
- This is a large commit, as all the changes are centered around the elimination
  of CLI.
- CLI is no longer compiled.
- Context no longer maintains CLI + CLI2.
- Filter now walks the parse tree and sends to Eval a
  std::vector <std::pair <std::string, Lexer::Type>> containing only args tagged
  with FILTER.
- Filter more efficiently sets/unsets Eval::debug, by doing it less often.
- The filterExpr.length() check is no longer meaningful, and instead the size of
  the std::vector above is used.
- Filter::pendingOnly performs better analysis.
- Filter::safety makes use of the std::vector size also.
- Task::modify makes use of 'canonical' rather than 'name', which is a policy
  change, not a fix.
2015-06-24 13:23:56 -04:00
Paul Beckingham
183550a190 CLI2: Unrecognized Lexer::Type::pair args are now downgraded to Lexer::Type::word 2015-06-24 13:06:20 -04:00
Paul Beckingham
de93c63535 Lexer: Not longer considers ( ) part of a contiguous token 2015-06-24 12:47:24 -04:00
Paul Beckingham
edff3e0e94 Tests: Converted undo.t to Python 2015-06-24 12:30:54 -04:00
Paul Beckingham
d9bcbdee0a Lexer: Added ::isContiguous for word-like matching 2015-06-22 21:34:57 -04:00
Paul Beckingham
e66ad50e7e Tests: Removed 'name=value' lexer test
- Test is now a duplicate, because 'name=value' was three tokens, and is now a
  pair.
2015-06-22 21:27:08 -04:00
Paul Beckingham
449d577cca CLI2: Moved all the ::desugar* methods after the single-arg manipulations 2015-06-22 21:21:26 -04:00
Paul Beckingham
960d2be06d Task: Added a Lexer::dequote to values 2015-06-22 16:29:56 -04:00
Paul Beckingham
1cf07cd6fb CLI2: Fixed bug in UUID filtering
- When filtering by UUID, the expression listed the 'uuid' attribute as a type
  Lexer::Type::string, which should have been Lexer::Type::dom.
2015-06-22 16:20:22 -04:00
Paul Beckingham
4b68fea674 CLI2: Fixed bug in ::findCommand
- If an argument is an exact match for a command ('projects'), it is a command.
- If an argument is not an exact match for command ('project'), but is an exact
  match for an attribute, it is not a command.
- If an argument fails the above tests, but canonicalizes to a command, it is a
  command.
2015-06-22 16:01:01 -04:00
Paul Beckingham
5d98acef29 Merge branch '2.4.5' of ssh://git.tasktools.org/tm/task into 2.4.5 2015-06-22 15:43:11 -04:00
Wilhelm Schuermann
de8eb2814b CMake: Require libgnutls by default.
- Make cmake complain and abort the build process if libgnutls is not
  available.  In order to build Taskwarrior without "sync" support,
  or to build it on a system with libgnutls missing, the new cmake
  flag "-DENABLE_SYNC=OFF" can be used.
2015-06-22 21:20:29 +02:00
Paul Beckingham
a541156cec CLI2: Added support for write commands specifїgin ID/UUID *after* CMD 2015-06-22 14:48:17 -04:00