diff --git a/NEWS b/NEWS index c1d9ab0c7..7b6555cbd 100644 --- a/NEWS +++ b/NEWS @@ -31,7 +31,7 @@ Taskwarrior has been built and tested on the following configurations: * OS X 10.8 Mountain Lion and 10.7 Lion * Fedora 18 Spherical Cow and 17 Beefy Miracle * Ubuntu 12.10 Quantal Quetzal and 12.04 Precise Pangolin - * Debian 6.0 Squeeze (stable)i and 5.0 Lenny (oldstable) plus Sid (testing) + * Debian 6.0 Squeeze (stable) and 5.0 Lenny (oldstable) plus Sid (testing) * Slackware 13.37 * Arch Linux * Gentoo Linux diff --git a/src/commands/CmdSync.cpp b/src/commands/CmdSync.cpp index ba0ca3e14..5166eedca 100644 --- a/src/commands/CmdSync.cpp +++ b/src/commands/CmdSync.cpp @@ -145,9 +145,11 @@ int CmdSync::execute (std::string& output) std::vector lines; split (lines, payload, '\n'); - // TODO This is not necessary if only a synch key was received. - // Load all tasks. - context.tdb2.all_tasks (); + // Load all tasks, but only if necessary. There is always a sync key in + // the payload, so if there are two or more lines, then we have merging + // to perform, otherwise it's just a backlog.data update. + if (lines.size () > 1) + context.tdb2.all_tasks (); std::string synch_key = ""; std::vector ::iterator line;