- Fixed bug #515, which displayed an incorrect message after duplicating a
  non-existent task (thanks to Peter De Poorter).
This commit is contained in:
Paul Beckingham 2010-11-26 11:08:51 -05:00
parent d7de67d242
commit 6ef5650129
3 changed files with 10 additions and 2 deletions

View file

@ -7,6 +7,8 @@
color.burndown.done colors. color.burndown.done colors.
+ Added feature #546, which is a 'count' command that counts tasks, and is + Added feature #546, which is a 'count' command that counts tasks, and is
intended to help scripts that manipulate task output. intended to help scripts that manipulate task output.
+ Fixed bug #515, which displayed an incorrect message after duplicating a
non-existent task (thanks to Peter De Poorter).
+ Fixed bug #529, where the 'depends' attribute was not mentioned in the + Fixed bug #529, where the 'depends' attribute was not mentioned in the
task man page (thanks to Dirk Deimeke). task man page (thanks to Dirk Deimeke).
+ Fixed bug #535 which omitted the holidays-NO.rc file from the packages + Fixed bug #535 which omitted the holidays-NO.rc file from the packages

View file

@ -2011,7 +2011,12 @@ int handleDuplicate (std::string& outs)
++count; ++count;
} }
if (context.config.getBoolean ("echo.command")) if (tasks.size () == 0)
{
out << "No matches.\n";
rc = 1;
}
else if (context.config.getBoolean ("echo.command"))
{ {
#ifdef FEATURE_NEW_ID #ifdef FEATURE_NEW_ID
// All this, just for an id number. // All this, just for an id number.

View file

@ -672,7 +672,8 @@ int handleInfo (std::string& outs)
<< "\n"; << "\n";
} }
if (! tasks.size ()) { if (! tasks.size ())
{
out << "No matches.\n"; out << "No matches.\n";
rc = 1; rc = 1;
} }