Tomas Babej
514c869aea
sort: Do not use Variant to sort UDA strings
...
String UDA defer the evaluation of the sort_compare method
to the '<' operator of the Variant class, since the logic for
comparing string UDAs (which can have custom sort orders) is
already implemented there.
However, since primary use case of Variant is the filter evaluation,
it handles trivial (empty) values in a manner which does not allow
for its direct usage as the comparison operator between sort UDAs.
When filtering, a trivial (empty) value should neither match
'uda < A' nor 'uda >= A'. However, when sorting tasks upon values of
this UDA, precisely one of the above expressions *must* be true.
This commit implements the UDA string sorting logic directly in
the sort_compare method.
2015-09-13 09:16:07 -04:00
Tomas Babej
b9f217a716
Context: Add timer that measures the total command duration explicitly
2015-09-12 17:36:57 -04:00
Paul Beckingham
ed58263c16
Timer: Added static ::now method for timestamps
2015-09-12 14:02:13 -04:00
Paul Beckingham
f42de556fa
CmdUnique: Changed from std::to_string to ::format
...
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52015
2015-09-12 09:52:09 -04:00
Paul Beckingham
75aa4008e1
CmdUnique: Missing header
2015-09-12 09:40:48 -04:00
Tomas Babej
2d0ac20720
CmdUnique: Special-case 'id' attribute
2015-09-12 09:25:01 -04:00
Paul Beckingham
d026eb759f
Config: Removed unnecessary parentheses in report filters, given TW-1656
2015-09-12 09:21:05 -04:00
Paul Beckingham
360071712f
CLI2: Removed references to PSEUDO args, now they are demoted to config settings
2015-09-12 09:20:31 -04:00
Paul Beckingham
84b3055690
CLI2: Pseudo-args demoted to config settings
...
- When 'limit:N' is encountered, it is removed from the command line, and
added as a config setting, equivalent to 'rc.limit:N'.
- This simplifieѕ subsequent command line parsing.
2015-09-12 09:03:15 -04:00
Paul Beckingham
c59afe34c4
TW-1656: Implicitly parenthesize argv filter
...
- Thanks to Daniel Shahaf.
2015-09-12 08:57:38 -04:00
Paul Beckingham
c4d797539d
Docs: updated text again
2015-09-12 07:45:23 -04:00
Paul Beckingham
1f47e8c99f
TW-1692: 42//' segfaults
...
- Thanks to Daniel Shahaf.
2015-09-12 07:34:56 -04:00
Tomas Babej
0d14822711
INSTALL: gnutls is not optional anymore
2015-09-12 07:22:06 -04:00
Wilhelm Schuermann
06a08c399e
TW-46: Circular dependency detection broken for missing tasks
2015-09-11 17:54:23 +02:00
Tomas Babej
cfb827770f
tests: Add test for TW-1656
2015-09-11 11:47:52 -04:00
Wilhelm Schuermann
791bd1b82a
Test: Simplify tw-1688.t
...
- bash_tap tests are executed in a temporary folder. Any data written
to the current directory will therefore be cleaned up without the
need for manually dealing with cleanup.
- $TASKDATA is set to this directory as well, so all Taskwarrior data
files are directly accessible.
2015-09-11 17:22:00 +02:00
Paul Beckingham
2bdaa37e32
CLI2: Removed unnecessary processing of filter
2015-09-11 08:44:39 -04:00
Paul Beckingham
442ef6a29b
CLI2: Combined two conditions
2015-09-11 08:43:55 -04:00
Tomas Babej
f22322bc18
problems: Return non-zero code when some tests fail
2015-09-11 07:50:37 -04:00
Paul Beckingham
cd736a0d70
TW-1688: task fails to import
...
- Thanks to Rainer Müller.
2015-09-11 07:49:29 -04:00
Paul Beckingham
f55afe33d7
Color: Removed FEATURE_COLOR conditional compile
...
- No need any more.
2015-09-10 22:17:25 -04:00
Paul Beckingham
b04032c9d6
TW-1683 Dom reference for project not properly evaluated
...
- Thanks to Tomas Babej.
2015-09-10 18:53:10 -04:00
Paul Beckingham
f2ac258bf1
Column: Missing include
2015-09-10 00:03:03 -04:00
Paul Beckingham
204f9195d2
Config: Given TW-1678, removed unsupported column formats from default config
2015-09-09 23:42:35 -04:00
Paul Beckingham
93e6ef5fb9
TW-1678: segfault in ~ViewTask()
...
- Column::setStyle now validates column styles.
- Thanks to Daniel Shahaf.
2015-09-09 23:41:37 -04:00
Paul Beckingham
cb011026aa
TW-1684 make no-date > has-date for all date attributes
...
- Thanks to David Patrick.
2015-09-08 18:07:53 -04:00
Paul Beckingham
3c54c78e3a
Sorting: All dates now sort the same as 'due' dates
2015-09-08 17:57:25 -04:00
Paul Beckingham
f60b77ef79
Docs: Typos fixed.
2015-09-07 19:48:39 -04:00
Paul Beckingham
aa3a014a66
CPack: Need four backslashes, the greedy bastard.
2015-09-07 18:02:23 -04:00
Paul Beckingham
047198bf6e
CMake: Fixed regex that excludes files for tarball
2015-09-07 17:43:26 -04:00
Federico Hernandez
b4f21a1195
More version number and date updates
2015-09-07 23:22:42 +02:00
Paul Beckingham
75152d913e
Test: Version test didn't know about betas
2015-09-07 17:15:42 -04:00
Federico Hernandez
06c6b94fd4
Renamed 2.4.5 to 2.5.0
2015-09-07 22:54:17 +02:00
Paul Beckingham
7a0927effe
Task: Project attributes are exempt from DOM expansion
2015-09-07 16:40:32 -04:00
Paul Beckingham
2854304e60
DOM: Refactored the contextual ::get
2015-09-07 16:12:54 -04:00
Paul Beckingham
91c05ea157
Test: Fixed broken test
2015-09-07 16:06:39 -04:00
Paul Beckingham
992cb6369a
DOM: Factored out element size
2015-09-07 15:13:12 -04:00
Paul Beckingham
3b4dc9acb3
CLI2: Removed unused arg
...
- Thanks to Tomas Babej.
2015-09-07 12:44:41 -04:00
Paul Beckingham
249a4b0f64
Eval: Removed useless comment
2015-09-07 12:36:23 -04:00
Paul Beckingham
d87a753de1
Docs: Updated man page regarding 'debug.parser' values
...
- Modified tests that use the above.
2015-09-07 12:33:53 -04:00
Tomas Babej
d210c6d07f
debug: Display parser trees at level 2, eval output at 3
2015-09-07 12:22:35 -04:00
Paul Beckingham
433d3dedca
Test: Corrected system name for FreeBSD
2015-09-07 12:09:41 -04:00
Paul Beckingham
10944a23e1
Test: Added combination of skipIf and expectedFail
2015-09-07 12:04:14 -04:00
Paul Beckingham
e4132f6a02
CLI2: Expand DOM references in single-token values
2015-09-07 11:49:55 -04:00
Paul Beckingham
557a8d357c
Test: Marked color merge tests as expected failures
...
- This is a bug in Color.cpp, not in the color.rules.t script, and the symptoms
of this bug are 256-color usage when 16-colors are expected. The Color::blend
method auto-upgradeѕ from 16 to 256, and may be the culprit. This bug is not
important enough to fix now.
2015-09-07 11:05:00 -04:00
Paul Beckingham
0a75c526a9
Test: Removed obsolete 'edit' test
2015-09-07 10:48:21 -04:00
Tomas Babej
e133d72e23
ChangeLog: Add note about TW-20
2015-09-07 08:20:51 -04:00
Tomas Babej
023cc3c383
CmdEdit: Do not bump annotation timestamps without need
2015-09-06 21:54:20 -04:00
Paul Beckingham
89df8e5c8a
Test: Corrected test, which assumed zero-based annotation indexing
2015-09-06 16:49:29 -04:00
Paul Beckingham
58d52a0191
Task: Factored out eval, added eval for tags.
2015-09-06 16:26:05 -04:00