From c5220d394513bb5c2b59bac2b1c318e1502a9964 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sat, 2 Jul 2011 11:43:51 +0000 Subject: [PATCH] VCS: copy-paste error, these functions return bool. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39228 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/VCBackend.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/VCBackend.cpp b/src/VCBackend.cpp index 342584284a..1c8520e7a2 100644 --- a/src/VCBackend.cpp +++ b/src/VCBackend.cpp @@ -369,7 +369,7 @@ bool RCS::prepareFileRevision(string const &revis, string & f) FileName tmpf = FileName::tempName("lyxvcrev_" + rev + "_"); if (tmpf.empty()) { LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf); - return N_("Error: Could not generate logfile."); + return false; } doVCCommand("co -p" + rev + " " @@ -1024,7 +1024,7 @@ bool SVN::checkLockMode() FileName tmpf = FileName::tempName("lyxvcout"); if (tmpf.empty()){ LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf); - return N_("Error: Could not generate logfile."); + return false; } LYXERR(Debug::LYXVC, "Detecting locking mode..."); @@ -1402,7 +1402,7 @@ bool SVN::getFileRevisionInfo() FileName tmpf = FileName::tempName("lyxvcout"); if (tmpf.empty()) { LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf); - return N_("Error: Could not generate logfile."); + return false; } doVCCommand("svn info --xml " + quoteName(onlyFileName(owner_->absFileName())) @@ -1455,7 +1455,7 @@ bool SVN::getTreeRevisionInfo() FileName tmpf = FileName::tempName("lyxvcout"); if (tmpf.empty()) { LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf); - return N_("Error: Could not generate logfile."); + return false; } doVCCommand("svnversion -n . > " + quoteName(tmpf.toFilesystemEncoding()),