]> git.lyx.org Git - lyx.git/blobdiff - src/VCBackend.cpp
Improve how add_to_preamble and insert_to_preamble work, and audit the
[lyx.git] / src / VCBackend.cpp
index 493ff91ba1355b8eaec05dc8326e1ad06a260de4..b3d5e97507fefb4639766b2ac4fcd8ebc57e9816 100644 (file)
@@ -232,6 +232,9 @@ bool RCS::repoUpdateEnabled()
 
 string RCS::lockingToggle()
 {
+       //FIXME this might be actually possible, study rcs -U, rcs -L.
+       //State should be easy to get inside scanMaster.
+       //It would fix #4370 and make rcs/svn usage even more closer.
        lyxerr << "Sorry, not implemented." << endl;
        return string();
 }
@@ -443,7 +446,9 @@ string const CVS::getTarget(OperationMode opmode) const
 {
        switch(opmode) {
        case Directory:
-               return quoteName(owner_->filePath());
+               // in client server mode CVS does not like full path operand for directory operation
+               // since LyX switches to the repo dir "." is good enough as target
+               return ".";
        case File:
                return quoteName(onlyFileName(owner_->absFileName()));
        }