Commit graph

6398 commits

Author SHA1 Message Date
Paul Beckingham
22765a70cb CLI2: Entity capture.
- CLI2::entity now captures all the known entities, duplicating the processing
  in Context for now.
2015-06-13 13:57:53 -04:00
Paul Beckingham
96493db047 CLI2: Ctor/dtors enabled. 2015-06-13 13:53:35 -04:00
Paul Beckingham
5602413acd CLI2: Migrated static methods
- The old CLI object has three static methods that are used for extracting
  information from the command line before parsing takes place. These include
  rc.name:value and rc:value and code that applies those overrides to
  Context::Config. These methods are moved to CLI2 - being static it makes no
  difference where they reside.
- Context::initialize now calls the CLI2 versions only.
2015-06-13 13:44:54 -04:00
Paul Beckingham
ca90893216 CLI2: Static initialization of global settings. 2015-06-13 13:38:19 -04:00
Paul Beckingham
708ddd3804 CLI2: Refactoring CLI to rely completely on the Lexer 2015-06-13 13:35:34 -04:00
Renato Alves
d1d300fc69 basetest: Documentation clarification 2015-06-12 20:20:28 +01:00
Renato Alves
2c4480dc1b Tests: bug.485 merged with filter.t 2015-06-11 23:42:46 +01:00
Renato Alves
bd3cce7d4b simpletap: Show more information in expected failures 2015-06-11 23:35:07 +01:00
Renato Alves
6b8dd60b33 Tests: bug.480 merged with filter.t 2015-06-11 23:06:37 +01:00
Renato Alves
a7e502395b Fix holiday for International Women's Day in BY and RU 2015-06-11 13:37:01 +01:00
Renato Alves
b763ce012c Tests: One more CYGWIN specific skipIf 2015-06-11 11:16:49 +01:00
Paul Beckingham
b138b278b5 tw-1469: Updated test to use unittest.skipIf(). 2015-06-10 20:49:27 -04:00
Renato Alves
afa042fdb4 Tests: Fix due.t failure on cygwin 2015-06-11 01:40:36 +01:00
Renato Alves
f152d14baa Tests: bug.455.t merged with encoding.t 2015-06-11 01:06:17 +01:00
Renato Alves
116c074c43 Tests: bug.441.t now in python 2015-06-11 00:49:36 +01:00
Renato Alves
f2e32739cf Tests: bug.440 merged with append.t 2015-06-11 00:46:51 +01:00
Renato Alves
00ee5dd7a3 Tests: Merge bug.438 with sorting.t 2015-06-11 00:35:43 +01:00
Renato Alves
c3423243d8 Tests: Rename self.diag to self.tap and use self.t.diag where applicable
Having self.diag and self.t.diag was confusing as one referred to TAP
output (self.diag) while the other referred to "task diagnostics"
self.t.diag.

self.diag is now gone and was replaced by self.tap with the same
behavior.
2015-06-10 23:33:56 +01:00
Renato Alves
cd3a848bad Tests: bug.425, bug_434 and wait now in python 2015-06-10 23:13:42 +01:00
Renato Alves
4dd09ca13f Tests: Commented tests are now active and marked as expected failures 2015-06-10 00:11:47 +01:00
Renato Alves
fad867e86b Tests: due.t, bug.418.t convert. Reorganize filter.t 2015-06-09 23:28:46 +01:00
Renato Alves
7e79c14eec Tests: convert ids.t to python 2015-06-09 21:31:59 +01:00
Renato Alves
ef477673d6 Tests: Convert problems to python 2015-06-09 17:12:16 +01:00
Wilhelm Schuermann
2e3b8c8c2a Plumbing: Move basic format() calls to templates
- format() is already using variadic templates, make use of a plain one
  to remove more code bloat.
2015-06-09 11:13:44 +02:00
Paul Beckingham
57133140fb Plumbing: Attempt at fixing the Cygwin missing std::to_string function. 2015-06-07 16:00:12 -04:00
Paul Beckingham
10eeb2566f Plumbing: Attempt at fixing the Cygwin missing std::to_string function. 2015-06-07 15:56:02 -04:00
Paul Beckingham
8a0bffc5b3 Merge branch '2.4.5' of ssh://git.tasktools.org/tm/task into 2.4.5 2015-06-07 15:34:52 -04:00
Paul Beckingham
2f1ca72334 Code: Improved comments regarding filters/args. 2015-06-07 15:34:33 -04:00
Wilhelm Schuermann
e95167a984 Plumbing: Use variadic templates for format()
- Use variadic templates, with a slight twist for properly supporting
  Taskwarrior's l10n strings.
- Adjust code that relied on implicit type conversion which led to
  problems with template instantiation.
- Move some functionality out of format() in order to keep it generic.
2015-06-07 20:54:02 +02:00
Paul Beckingham
f0fbdaf2c9 CLI: Removed silly object qualification context.cli.dump() -> dump() 2015-06-07 12:41:27 -04:00
Paul Beckingham
ae0a0f671a Cleanup: Removed obsolete args.cpp 2015-06-07 11:09:25 -04:00
Paul Beckingham
0d6df3c7aa CLI: Removed unused std::vectors. 2015-06-07 10:11:15 -04:00
Paul Beckingham
b89fe446b4 CLI: Documented need for further categorization. 2015-06-07 10:10:39 -04:00
Paul Beckingham
3dc7baa4ed CLI: Removed unused and eclipsed argument to ::addArg. 2015-06-07 10:02:00 -04:00
Paul Beckingham
7f763aacb9 CLI: Cleaned up and documented context filter code. 2015-06-07 09:52:58 -04:00
Paul Beckingham
490742284b Merge branch '2.4.5' of ssh://git.tasktools.org/tm/task into 2.4.5 2015-06-07 09:47:15 -04:00
Paul Beckingham
e1a03c4415 Context: Removed misleading comment. 2015-06-07 09:47:07 -04:00
Wilhelm Schuermann
ae692e07a6 Verbosity: Fix "project" info not showing
- Make "project" verbosity imply "footnote", since verbose project
  info is shown using footnotes.  Fixes failing test in verbose.t.
- Convert "verbosity" variable to std::set for increased readability.
2015-06-07 15:01:26 +02:00
Wilhelm Schuermann
124f1fe4c8 ChangeLog: Include closed JIRA issues 2015-06-06 17:27:51 +02:00
Paul Beckingham
207048514d CLI: Removed overly complex handling of terminator in ::findOverrides. 2015-06-06 11:08:19 -04:00
Paul Beckingham
1281dfbf22 CLI: Removed redundant terminator scanning in ::initialize. 2015-06-06 11:02:42 -04:00
Paul Beckingham
61470d7820 CLI: Cleaned up overly complex use of 'terminated'. 2015-06-06 10:51:32 -04:00
Wilhelm Schuermann
27cb2afe2c Tests: Make nag work
Note to self:
Even the most trivial change needs to be tested for idiocy.
2015-06-06 16:44:10 +02:00
Paul Beckingham
160f3672db Typo: Error in comment. 2015-06-06 10:38:23 -04:00
Paul Beckingham
fc6507803b Scripts: Removed obsolete script 'context'. 2015-06-06 10:37:22 -04:00
Wilhelm Schuermann
ffd1611b46 Tests: Make run_all nag 2015-06-06 16:17:22 +02:00
Renato Alves
9f78e87447 Tests: edit.t set VISUAL instead of EDITOR
VISUAL is checked first and used if available.
If the user has VISUAL defined on the environment, the test will have an
unexpected result.
2015-06-06 04:18:13 +01:00
Renato Alves
7517f0a9a0 Tests: uda_report.t now in Python 2015-06-06 03:06:12 +01:00
Renato Alves
c0286c58de Tests: Merge uda_<type>.t to uda.t and convert to Python 2015-06-06 02:57:07 +01:00
Renato Alves
5c788bf198 Tests: Refactor uda_sort.t to use assertTrue instead 2015-06-06 02:55:57 +01:00