]> git.lyx.org Git - lyx.git/blobdiff - src/VCBackend.cpp
Clarify some comments.
[lyx.git] / src / VCBackend.cpp
index 331d6e87b1884c8b44e65f0d5ff87d2ccdfe7834..422483347c303bf234c1f5b8ced66a42290218bc 100644 (file)
@@ -273,7 +273,11 @@ void RCS::getLog(FileName const & tmpf)
 
 bool RCS::toggleReadOnlyEnabled()
 {
-       return true;
+       // This got broken somewhere along lfuns dispatch reorganization.
+       // reloadBuffer would be needed after this, but thats problematic
+       // since we are inside Buffer::dispatch.
+       // return true;
+       return false;
 }
 
 
@@ -600,7 +604,7 @@ string SVN::checkIn(string const & msg)
                fileLock(false, tmpf, log);
 
        tmpf.erase();
-       return "SVN: " + log;
+       return log.empty() ? string() : "SVN: " + log;
 }
 
 
@@ -695,7 +699,7 @@ string SVN::checkOut()
        fileLock(true, tmpf, log);
 
        tmpf.erase();
-       return "SVN: " + log;
+       return log.empty() ? string() : "SVN: " + log;
 }
 
 
@@ -729,7 +733,7 @@ string SVN::repoUpdate()
                                "will be preferred."
                                "\n\nContinue?"), file);
                int ret = frontend::Alert::prompt(_("Changes detected"),
-                               text, 0, 1, _("&Yes"), _("&No"), _("View &Log"));
+                               text, 0, 1, _("&Yes"), _("&No"), _("View &Log ..."));
                if (ret == 2 ) {
                        dispatch(FuncRequest(LFUN_DIALOG_SHOW, "file " + tmpf.absFilename()));
                        ret = frontend::Alert::prompt(_("Changes detected"),