Minor Edits

- Corrected typo in tips file.
- Added explanatory comment regarding dependency chains.
This commit is contained in:
Paul Beckingham
2010-09-22 22:23:24 -04:00
parent 1e7bebb3b2
commit f351bf6dec
2 changed files with 29 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ verb, like "call" or "clean" or "get".
% %
Don't like the name of a command? Create an alias. Don't like the name of a command? Create an alias.
% %
You can choose whether your searches are case sensitive or not, by setting You can choose whether your searches are case sensitive or not, by running
'task config search.case.sensitive yes' 'task config search.case.sensitive yes'
% %
Back up your data files by making copies of the ~/.taskrc file and ~/.task Back up your data files by making copies of the ~/.taskrc file and ~/.task

View File

@@ -34,7 +34,8 @@
extern Context context; extern Context context;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
static bool followUpstream (const Task&, const Task&, const std::vector <Task>&, std::vector <std::string>&); static bool followUpstream (const Task&, const Task&, const std::vector <Task>&,
std::vector <std::string>&);
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// A task is blocked if it depends on tasks that are pending or waiting. // A task is blocked if it depends on tasks that are pending or waiting.
@@ -182,11 +183,36 @@ static bool followUpstream (
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Determine whether a dependency chain is being broken, assuming that 'task' is // Determine whether a dependency chain is being broken, assuming that 'task' is
// either completed or deleted. // either completed or deleted.
//
// [1] --> 2 Chain broken
// Nag message generated
// Repair offered: 1 dep:-2
//
// [1] --> 2 Chain broken
// --> 3 Nag message generated
// Repair offered: 1 dep:-2,-3
//
// 1 --> [2] -
//
// 1 --> [2] -
// 3 -->
//
// 1 --> [2] --> 3 Chain broken
// Nag message generated
// Repair offered: 2 dep:-3
// 1 dep:-2,3
//
// 1 --> [2] --> 3 Chain broken
// 4 --> --> 5 Nag message generated
// Repair offered: 2 dep:-3,-5
// 1 dep:3,5
// 4 dep:3,5
//
bool dependencyChainBroken (Task& task) bool dependencyChainBroken (Task& task)
{ {
if (task.has ("depends")) if (task.has ("depends"))
{ {
std::cout << "# chain broken\n"; std::cout << "# chain broken?\n";
return true; return true;
} }