mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Merge branch '1.9.3' of tasktools.org:task into 1.9.3
This commit is contained in:
commit
bb6f456e04
3 changed files with 60 additions and 39 deletions
13
src/TDB.cpp
13
src/TDB.cpp
|
@ -1356,9 +1356,14 @@ void TDB::merge (const std::string& mergeFile)
|
|||
{
|
||||
// nothing happend on the remote branch
|
||||
// local branch is up-to-date
|
||||
throw std::string ("Database is up to date.");
|
||||
|
||||
// nothing happend on the local branch either
|
||||
if (lit == l.end())
|
||||
throw std::string ("Database is up to date.");
|
||||
else
|
||||
std::cout << "No changes were made on the remote database.\n";
|
||||
}
|
||||
else // lit == undo.end ()
|
||||
else // lit == l.end ()
|
||||
{
|
||||
// nothing happend on the local branch
|
||||
std::cout << "No changes were made on the local database. Adding remote changes...\n";
|
||||
|
@ -1541,10 +1546,6 @@ void TDB::merge (const std::string& mergeFile)
|
|||
if (! File::write (undoFile, undo, false))
|
||||
throw std::string ("Could not write '") + undoFile + "'.";
|
||||
}
|
||||
else // nothing to be done
|
||||
{
|
||||
std::cout << "No merge required.\n";
|
||||
}
|
||||
|
||||
// delete objects
|
||||
lmods.clear ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue