Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46c5f8b826 | ||
|
|
254d5c6fd7 | ||
|
|
c71146611c | ||
|
|
99849e55b4 | ||
|
|
c247cf11ad | ||
|
|
28e66a28aa | ||
|
|
98fbd28501 |
1
AUTHORS
1
AUTHORS
@@ -152,4 +152,5 @@ suggestions:
|
|||||||
Stanley G
|
Stanley G
|
||||||
Marek Vitek
|
Marek Vitek
|
||||||
Rene Vergara
|
Rene Vergara
|
||||||
|
Stéphane Pezennec
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ include (CheckStructHasMember)
|
|||||||
set (HAVE_CMAKE true)
|
set (HAVE_CMAKE true)
|
||||||
|
|
||||||
project (task)
|
project (task)
|
||||||
set (PROJECT_VERSION "2.1.0")
|
set (PROJECT_VERSION "2.1.1")
|
||||||
|
|
||||||
SET (TASK_MAN1DIR share/man/man1 CACHE STRING "Installation directory for man pages, section 1")
|
SET (TASK_MAN1DIR share/man/man1 CACHE STRING "Installation directory for man pages, section 1")
|
||||||
SET (TASK_MAN5DIR share/man/man5 CACHE STRING "Installation directory for man pages, section 5")
|
SET (TASK_MAN5DIR share/man/man5 CACHE STRING "Installation directory for man pages, section 5")
|
||||||
|
|||||||
16
ChangeLog
16
ChangeLog
@@ -1,7 +1,15 @@
|
|||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
2.1.0 (2012-07-23)
|
2.1.1 (2012-07-24)
|
||||||
|
|
||||||
|
Bugs
|
||||||
|
+ Fixed bug that caused miplaced commas in JSON export (thanks to greenskeleton).
|
||||||
|
+ Fixed bug #1036, which prevents 'until' attributes to be modified for
|
||||||
|
non-recurring tasks (thanks to Stéphane Pezennec).
|
||||||
|
|
||||||
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
2.1.0 (2012-07-23) a413331c9450b48065f94639e7ab0455eaa74293
|
||||||
|
|
||||||
Features
|
Features
|
||||||
+ Feature #164, #325, #339, #435, #553, #554, #975, User Defined Attributes.
|
+ Feature #164, #325, #339, #435, #553, #554, #975, User Defined Attributes.
|
||||||
@@ -41,6 +49,8 @@ Features
|
|||||||
+ Color error messages with a specific configuration variable 'color.error'.
|
+ Color error messages with a specific configuration variable 'color.error'.
|
||||||
|
|
||||||
Bugs
|
Bugs
|
||||||
|
+ Fixed bug #734, which allows a sequence of IDs to work when modifying the
|
||||||
|
attribute "depends" (thanks to Andreas Kalex).
|
||||||
+ Applied patch for bug #919, so the holidays listed on the 'calendar' report
|
+ Applied patch for bug #919, so the holidays listed on the 'calendar' report
|
||||||
are sorted (thanks to Jörg Plate).
|
are sorted (thanks to Jörg Plate).
|
||||||
+ Fixed bug #954, which caused bulk deletions when using a UUID filter term and
|
+ Fixed bug #954, which caused bulk deletions when using a UUID filter term and
|
||||||
@@ -116,8 +126,6 @@ Bugs
|
|||||||
+ Fixed bug #1032, which prevented negative urgency coefficients from working
|
+ Fixed bug #1032, which prevented negative urgency coefficients from working
|
||||||
for projects and tags.
|
for projects and tags.
|
||||||
|
|
||||||
------ old releases ------------------------------
|
|
||||||
|
|
||||||
2.0.0 (2012-03-17) 03799eba9f230e48c4fa6d6ebddabe91bef7998f
|
2.0.0 (2012-03-17) 03799eba9f230e48c4fa6d6ebddabe91bef7998f
|
||||||
|
|
||||||
# Untracked Features, biggest first.
|
# Untracked Features, biggest first.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.TH task-color 5 2012-07-23 "${PACKAGE_STRING}" "User Manuals"
|
.TH task-color 5 2012-07-24 "${PACKAGE_STRING}" "User Manuals"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
task-color \- A color tutorial for the taskwarrior command line todo manager.
|
task-color \- A color tutorial for the taskwarrior command line todo manager.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.TH task-faq 5 2012-07-23 "${PACKAGE_STRING}" "User Manuals"
|
.TH task-faq 5 2012-07-24 "${PACKAGE_STRING}" "User Manuals"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
task-faq \- A FAQ for the task(1) command line todo manager.
|
task-faq \- A FAQ for the task(1) command line todo manager.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.TH task-sync 5 2012-07-23 "${PACKAGE_STRING}" "User Manuals"
|
.TH task-sync 5 2012-07-24 "${PACKAGE_STRING}" "User Manuals"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
task-sync \- A tutorial for the task(1) data synchronization capabilities.
|
task-sync \- A tutorial for the task(1) data synchronization capabilities.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.TH task-tutorial 5 2012-07-23 "${PACKAGE_STRING}" "User Manuals"
|
.TH task-tutorial 5 2012-07-24 "${PACKAGE_STRING}" "User Manuals"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
task-tutorial \- A tutorial for the task(1) command line todo manager.
|
task-tutorial \- A tutorial for the task(1) command line todo manager.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.TH task 1 2012-07-23 "${PACKAGE_STRING}" "User Manuals"
|
.TH task 1 2012-07-24 "${PACKAGE_STRING}" "User Manuals"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
task \- A command line todo manager.
|
task \- A command line todo manager.
|
||||||
@@ -18,13 +18,11 @@ At the core, taskwarrior is a list processing program. You add text and
|
|||||||
additional related parameters and redisplay the information in a nice way. It
|
additional related parameters and redisplay the information in a nice way. It
|
||||||
turns into a todo list program when you add due dates and recurrence. It turns
|
turns into a todo list program when you add due dates and recurrence. It turns
|
||||||
into an organized todo list program when you add priorities, tags (one word
|
into an organized todo list program when you add priorities, tags (one word
|
||||||
descriptors), project groups, etc. Taskwarrior turns into an organized to do
|
descriptors), project groups, etc.
|
||||||
list program when you modify the configuration file to have the output displayed
|
|
||||||
the way you want to see it.
|
|
||||||
|
|
||||||
.SH FILTER
|
.SH FILTER
|
||||||
The <filter> consists of zero or more search criteria that select tasks. For
|
The <filter> consists of zero or more search criteria that select tasks. For
|
||||||
example, to list all tasks belonging to the 'Home' project:
|
example, to list all pending tasks belonging to the 'Home' project:
|
||||||
|
|
||||||
task project:Home list
|
task project:Home list
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.TH taskrc 5 2012-07-23 "${PACKAGE_STRING}" "User Manuals"
|
.TH taskrc 5 2012-07-24 "${PACKAGE_STRING}" "User Manuals"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
taskrc \- Configuration file for the task(1) command
|
taskrc \- Configuration file for the task(1) command
|
||||||
@@ -280,7 +280,7 @@ and project. The others are sent to standard output.
|
|||||||
.B confirmation=yes
|
.B confirmation=yes
|
||||||
May be "yes" or "no", and determines whether taskwarrior will ask for
|
May be "yes" or "no", and determines whether taskwarrior will ask for
|
||||||
confirmation before deleting a task, performing bulk changes, or the undo
|
confirmation before deleting a task, performing bulk changes, or the undo
|
||||||
command. The default value is "yes". Consider leaving this setting as "no",
|
command. The default value is "yes". Consider leaving this setting as "yes",
|
||||||
for safety.
|
for safety.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
@@ -1196,8 +1196,7 @@ An optional value to a report limiting the number of displayed tasks in the
|
|||||||
generated report. Deprecated.
|
generated report. Deprecated.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
Taskwarrior comes with a number of predefined reports in its default
|
Taskwarrior comes with a number of predefined reports, which are:
|
||||||
configuration file. These reports are:
|
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B next
|
.B next
|
||||||
@@ -1205,7 +1204,7 @@ Lists the most important tasks.
|
|||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B long
|
.B long
|
||||||
Lists all tasks and all data, matching the specified criteria.
|
Lists all pending tasks and all data, matching the specified criteria.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B list
|
.B list
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -66,14 +66,15 @@ int CmdExport::execute (std::string& output)
|
|||||||
std::vector <Task>::iterator task;
|
std::vector <Task>::iterator task;
|
||||||
for (task = filtered.begin (); task != filtered.end (); ++task)
|
for (task = filtered.begin (); task != filtered.end (); ++task)
|
||||||
{
|
{
|
||||||
output += task->composeJSON (true);
|
|
||||||
|
|
||||||
if (task != filtered.begin ())
|
if (task != filtered.begin ())
|
||||||
output += ",";
|
output += ",\n";
|
||||||
|
|
||||||
output += "\n";
|
output += task->composeJSON (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (filtered.size ())
|
||||||
|
output += "\n";
|
||||||
|
|
||||||
if (json_array)
|
if (json_array)
|
||||||
output += "]\n";
|
output += "]\n";
|
||||||
|
|
||||||
|
|||||||
@@ -83,11 +83,6 @@ int CmdModify::execute (std::string& output)
|
|||||||
!before.has ("due"))
|
!before.has ("due"))
|
||||||
throw std::string (STRING_CMD_MODIFY_NO_DUE);
|
throw std::string (STRING_CMD_MODIFY_NO_DUE);
|
||||||
|
|
||||||
if (task->has ("until") &&
|
|
||||||
!task->has ("recur") &&
|
|
||||||
!before.has ("recur"))
|
|
||||||
throw std::string (STRING_CMD_MODIFY_UNTIL);
|
|
||||||
|
|
||||||
if (before.has ("recur") &&
|
if (before.has ("recur") &&
|
||||||
before.has ("due") &&
|
before.has ("due") &&
|
||||||
(!task->has ("due") ||
|
(!task->has ("due") ||
|
||||||
|
|||||||
@@ -448,7 +448,6 @@
|
|||||||
|
|
||||||
#define STRING_CMD_MODIFY_USAGE1 "Modifies the existing task with provided arguments."
|
#define STRING_CMD_MODIFY_USAGE1 "Modifies the existing task with provided arguments."
|
||||||
#define STRING_CMD_MODIFY_NO_DUE "You cannot specify a recurring task without a due date."
|
#define STRING_CMD_MODIFY_NO_DUE "You cannot specify a recurring task without a due date."
|
||||||
#define STRING_CMD_MODIFY_UNTIL "You cannot specify an until date for a non-recurring task."
|
|
||||||
#define STRING_CMD_MODIFY_REM_DUE "You cannot remove the due date from a recurring task."
|
#define STRING_CMD_MODIFY_REM_DUE "You cannot remove the due date from a recurring task."
|
||||||
#define STRING_CMD_MODIFY_REC_ALWAYS "You cannot remove the recurrence from a recurring task."
|
#define STRING_CMD_MODIFY_REC_ALWAYS "You cannot remove the recurrence from a recurring task."
|
||||||
#define STRING_CMD_MODIFY_TASK "Modifying task {1} '{2}'."
|
#define STRING_CMD_MODIFY_TASK "Modifying task {1} '{2}'."
|
||||||
|
|||||||
63
test/bug.1036.t
Executable file
63
test/bug.1036.t
Executable file
@@ -0,0 +1,63 @@
|
|||||||
|
#! /usr/bin/perl
|
||||||
|
################################################################################
|
||||||
|
## taskwarrior - a command line task list manager.
|
||||||
|
##
|
||||||
|
## Copyright 2006-2012, Paul Beckingham, Federico Hernandez.
|
||||||
|
##
|
||||||
|
## Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
## of this software and associated documentation files (the "Software"), to deal
|
||||||
|
## in the Software without restriction, including without limitation the rights
|
||||||
|
## to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
## copies of the Software, and to permit persons to whom the Software is
|
||||||
|
## furnished to do so, subject to the following conditions:
|
||||||
|
##
|
||||||
|
## The above copyright notice and this permission notice shall be included
|
||||||
|
## in all copies or substantial portions of the Software.
|
||||||
|
##
|
||||||
|
## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
## OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
## FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
## THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
## LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
## OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
## SOFTWARE.
|
||||||
|
##
|
||||||
|
## http://www.opensource.org/licenses/mit-license.php
|
||||||
|
##
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
use Test::More tests => 4;
|
||||||
|
|
||||||
|
# Create the rc file.
|
||||||
|
if (open my $fh, '>', 'bug.rc')
|
||||||
|
{
|
||||||
|
print $fh "data.location=.\n";
|
||||||
|
close $fh;
|
||||||
|
ok (-r 'bug.rc', 'Created bug.rc');
|
||||||
|
}
|
||||||
|
|
||||||
|
# Bug #1036: prevents 'until' attributes to be modified for non-recurring
|
||||||
|
# tasks.
|
||||||
|
|
||||||
|
# Check that until attribute may be modified
|
||||||
|
qx{../src/task rc:bug.rc add test 2>&1};
|
||||||
|
my $output = qx{../src/task rc:bug.rc 1 mod until:1/1/2020 2>&1};
|
||||||
|
like ($output, qr/^Modifying task 1 'test'.$/ms, '"until" attribute added');
|
||||||
|
|
||||||
|
qx{../src/task rc:bug.rc add test until:1/1/2020 2>&1};
|
||||||
|
$output = qx{../src/task rc:bug.rc 1 mod /test/Test/ 2>&1};
|
||||||
|
like ($output, qr/^Modifying task 1 'Test'.$/ms, 'Task with "until" attribute modified');
|
||||||
|
|
||||||
|
# Cleanup.
|
||||||
|
unlink qw(pending.data completed.data undo.data backlog.data synch.key bug.rc);
|
||||||
|
ok (! -r 'pending.data' &&
|
||||||
|
! -r 'completed.data' &&
|
||||||
|
! -r 'undo.data' &&
|
||||||
|
! -r 'backlog.data' &&
|
||||||
|
! -r 'synch.key' &&
|
||||||
|
! -r 'bug.rc', 'Cleanup');
|
||||||
|
|
||||||
|
exit 0;
|
||||||
|
|
||||||
Reference in New Issue
Block a user