]> git.lyx.org Git - lyx.git/blobdiff - src/VCBackend.cpp
VCS: copy-paste error, these functions return bool.
[lyx.git] / src / VCBackend.cpp
index bc47719480488acfadb71e80ff61652253c713ed..1c8520e7a23d0bed4950803a32ca809f2abf3b35 100644 (file)
@@ -43,7 +43,7 @@ int VCS::doVCCommandCall(string const & cmd, FileName const & path)
        LYXERR(Debug::LYXVC, "doVCCommandCall: " << cmd);
        Systemcall one;
        support::PathChanger p(path);
-       return one.startscript(Systemcall::Wait, cmd, false);
+       return one.startscript(Systemcall::Wait, cmd, string(), false);
 }
 
 
@@ -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()),