SVN: Return an empty string when the log message is empty.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32627 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-12-23 23:06:07 +00:00
parent 6aefcd7c24
commit 6891e077d0

View File

@ -600,7 +600,7 @@ string SVN::checkIn(string const & msg)
fileLock(false, tmpf, log); fileLock(false, tmpf, log);
tmpf.erase(); tmpf.erase();
return "SVN: " + log; return log.empty() ? string() : "SVN: " + log;
} }
@ -695,7 +695,7 @@ string SVN::checkOut()
fileLock(true, tmpf, log); fileLock(true, tmpf, log);
tmpf.erase(); tmpf.erase();
return "SVN: " + log; return log.empty() ? string() : "SVN: " + log;
} }