Dependencies

- Added support for rc.dependency.reminder.
- Modified man page.
This commit is contained in:
Paul Beckingham 2010-09-16 22:09:03 -04:00
parent 975c2bbcb9
commit ec3c1c4def
4 changed files with 13 additions and 3 deletions

View file

@ -514,6 +514,12 @@ Determines how many months the "task calendar" command renders across the
screen. Defaults to however many will fit. If more months than will fit are
specified, taskwarrior will only show as many that will fit.
.SS DEPENDENCIES
.TP
.B dependency.reminder=on
Determines whether dependency chain violations generate reminders.
.SS COLOR CONTROLS
.TP

View file

@ -103,6 +103,9 @@ std::string Config::defaults =
"journal.time.start.annotation=Started task # Annotation description for the start journal entry\n"
"journal.time.stop.annotation=Stopped task # Annotation description for the stop journal entry\n"
"\n"
"# Dependency controls\n"
"dependency.reminder=on # Nags on dependency chain violations\n"
"\n"
"# Urgency Coefficients\n"
"urgency.next.coefficient=10.0 # Urgency coefficients for 'next' special tag\n"
"urgency.blocking.coefficient=9.0 # Urgency coefficients for blocking tasks\n"

View file

@ -812,8 +812,8 @@ int handleShow (std::string &outs)
"color.undo.after confirmation curses data.location dateformat "
"dateformat.holiday dateformat.report dateformat.annotation debug "
"default.command default.priority default.project defaultwidth due "
"locale displayweeknumber export.ical.class echo.command fontunderline "
"locking monthsperline nag next journal.time "
"dependency.reminder locale displayweeknumber export.ical.class "
"echo.command fontunderline locking monthsperline nag next journal.time "
"journal.time.start.annotation journal.time.stop.annotation project "
"shadow.command shadow.file shadow.notify weekstart editor "
"import.synonym.id import.synonym.uuid complete.all.projects "

View file

@ -199,7 +199,8 @@ std::string dependencyNag (Task& task)
{
std::stringstream out;
if (task.has ("depends"))
if (context.config.getBoolean ("dependency.reminder") &&
task.has ("depends"))
{
out << "# dependencyNag "
<< task.id