3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
14 #include "VCBackend.h"
17 #include "FuncRequest.h"
19 #include "frontends/alert.h"
20 #include "frontends/Application.h"
22 #include "support/convert.h"
23 #include "support/debug.h"
24 #include "support/filetools.h"
25 #include "support/gettext.h"
26 #include "support/lstrings.h"
27 #include "support/Path.h"
28 #include "support/Systemcall.h"
29 #include "support/regex.h"
34 using namespace lyx::support;
41 int VCS::doVCCommandCall(string const & cmd, FileName const & path)
43 LYXERR(Debug::LYXVC, "doVCCommandCall: " << cmd);
45 support::PathChanger p(path);
46 return one.startscript(Systemcall::Wait, cmd, false);
50 int VCS::doVCCommand(string const & cmd, FileName const & path)
53 owner_->setBusy(true);
55 int const ret = doVCCommandCall(cmd, path);
58 owner_->setBusy(false);
60 frontend::Alert::error(_("Revision control error."),
61 bformat(_("Some problem occured while running the command:\n"
68 /////////////////////////////////////////////////////////////////////
72 /////////////////////////////////////////////////////////////////////
74 RCS::RCS(FileName const & m)
81 FileName const RCS::findFile(FileName const & file)
83 // Check if *,v exists.
84 FileName tmp(file.absFileName() + ",v");
85 LYXERR(Debug::LYXVC, "LyXVC: Checking if file is under rcs: " << tmp);
86 if (tmp.isReadableFile()) {
87 LYXERR(Debug::LYXVC, "Yes, " << file << " is under rcs.");
91 // Check if RCS/*,v exists.
92 tmp = FileName(addName(addPath(onlyPath(file.absFileName()), "RCS"), file.absFileName()) + ",v");
93 LYXERR(Debug::LYXVC, "LyXVC: Checking if file is under rcs: " << tmp);
94 if (tmp.isReadableFile()) {
95 LYXERR(Debug::LYXVC, "Yes, " << file << " is under rcs.");
103 void RCS::retrieve(FileName const & file)
105 LYXERR(Debug::LYXVC, "LyXVC::RCS: retrieve.\n\t" << file);
106 doVCCommandCall("co -q -r " + quoteName(file.toFilesystemEncoding()),
111 void RCS::scanMaster()
116 LYXERR(Debug::LYXVC, "LyXVC::RCS: scanMaster: " << master_);
118 ifstream ifs(master_.toFilesystemEncoding().c_str());
121 bool read_enough = false;
123 while (!read_enough && ifs >> token) {
124 LYXERR(Debug::LYXVC, "LyXVC::scanMaster: current lex text: `"
129 else if (token == "head") {
133 tmv = rtrim(tmv, ";");
135 LYXERR(Debug::LYXVC, "LyXVC: version found to be " << tmv);
136 } else if (contains(token, "access")
137 || contains(token, "symbols")
138 || contains(token, "strict")) {
140 } else if (contains(token, "locks")) {
142 if (contains(token, ';')) {
143 locker_ = "Unlocked";
152 s1 = rtrim(tmpt, ";");
153 // tmp is now in the format <user>:<version>
154 s1 = split(s1, s2, ':');
155 // s2 is user, and s1 is version
156 if (s1 == version_) {
161 } while (!contains(tmpt, ';'));
163 } else if (token == "comment") {
164 // we don't need to read any further than this.
168 LYXERR(Debug::LYXVC, "LyXVC::scanMaster(): unexpected token");
174 void RCS::registrer(string const & msg)
176 string cmd = "ci -q -u -i -t-\"";
179 cmd += quoteName(onlyFileName(owner_->absFileName()));
180 doVCCommand(cmd, FileName(owner_->filePath()));
184 string RCS::checkIn(string const & msg)
186 int ret = doVCCommand("ci -q -u -m\"" + msg + "\" "
187 + quoteName(onlyFileName(owner_->absFileName())),
188 FileName(owner_->filePath()));
189 return ret ? string() : "RCS: Proceeded";
193 bool RCS::checkInEnabled()
195 return owner_ && !owner_->isReadonly();
199 string RCS::checkOut()
202 int ret = doVCCommand("co -q -l " + quoteName(onlyFileName(owner_->absFileName())),
203 FileName(owner_->filePath()));
204 return ret ? string() : "RCS: Proceeded";
208 bool RCS::checkOutEnabled()
210 return owner_ && owner_->isReadonly();
214 string RCS::repoUpdate()
216 lyxerr << "Sorry, not implemented." << endl;
221 bool RCS::repoUpdateEnabled()
227 string RCS::lockingToggle()
229 lyxerr << "Sorry, not implemented." << endl;
234 bool RCS::lockingToggleEnabled()
242 doVCCommand("co -f -u" + version_ + " "
243 + quoteName(onlyFileName(owner_->absFileName())),
244 FileName(owner_->filePath()));
245 // We ignore changes and just reload!
252 LYXERR(Debug::LYXVC, "LyXVC: undoLast");
253 doVCCommand("rcs -o" + version_ + " "
254 + quoteName(onlyFileName(owner_->absFileName())),
255 FileName(owner_->filePath()));
259 bool RCS::undoLastEnabled()
265 void RCS::getLog(FileName const & tmpf)
267 doVCCommand("rlog " + quoteName(onlyFileName(owner_->absFileName()))
268 + " > " + quoteName(tmpf.toFilesystemEncoding()),
269 FileName(owner_->filePath()));
273 bool RCS::toggleReadOnlyEnabled()
275 // This got broken somewhere along lfuns dispatch reorganization.
276 // reloadBuffer would be needed after this, but thats problematic
277 // since we are inside Buffer::dispatch.
282 string RCS::revisionInfo(LyXVC::RevisionInfo const info)
284 if (info == LyXVC::File)
290 bool RCS::prepareFileRevision(string const &revis, string & f)
295 int back = convert<int>(rev);
296 // if positive use as the last number in the whole revision string
299 rsplit(version_, base , '.' );
300 rev = base + "." + rev;
304 // we care about the last number from revision string
305 // in case of backward indexing
308 cur = rsplit(version_, base , '.' );
311 int want = convert<int>(cur) + back;
315 rev = base + "." + convert<string>(want);
319 FileName tmpf = FileName::tempName("lyxvcrev_" + rev + "_");
321 LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
322 return N_("Error: Could not generate logfile.");
325 doVCCommand("co -p" + rev + " "
326 + quoteName(onlyFileName(owner_->absFileName()))
327 + " > " + quoteName(tmpf.toFilesystemEncoding()),
328 FileName(owner_->filePath()));
329 if (tmpf.isFileEmpty())
332 f = tmpf.absFileName();
337 bool RCS::prepareFileRevisionEnabled()
343 /////////////////////////////////////////////////////////////////////
347 /////////////////////////////////////////////////////////////////////
349 CVS::CVS(FileName const & m, FileName const & f)
357 FileName const CVS::findFile(FileName const & file)
359 // First we look for the CVS/Entries in the same dir
360 // where we have file.
361 FileName const entries(onlyPath(file.absFileName()) + "/CVS/Entries");
362 string const tmpf = '/' + onlyFileName(file.absFileName()) + '/';
363 LYXERR(Debug::LYXVC, "LyXVC: Checking if file is under cvs in `" << entries
364 << "' for `" << tmpf << '\'');
365 if (entries.isReadableFile()) {
366 // Ok we are at least in a CVS dir. Parse the CVS/Entries
367 // and see if we can find this file. We do a fast and
369 ifstream ifs(entries.toFilesystemEncoding().c_str());
371 while (getline(ifs, line)) {
372 LYXERR(Debug::LYXVC, "\tEntries: " << line);
373 if (contains(line, tmpf))
381 void CVS::scanMaster()
383 LYXERR(Debug::LYXVC, "LyXVC::CVS: scanMaster. \n Checking: " << master_);
384 // Ok now we do the real scan...
385 ifstream ifs(master_.toFilesystemEncoding().c_str());
386 string tmpf = '/' + onlyFileName(file_.absFileName()) + '/';
387 LYXERR(Debug::LYXVC, "\tlooking for `" << tmpf << '\'');
389 static regex const reg("/(.*)/(.*)/(.*)/(.*)/(.*)");
390 while (getline(ifs, line)) {
391 LYXERR(Debug::LYXVC, "\t line: " << line);
392 if (contains(line, tmpf)) {
393 // Ok extract the fields.
396 regex_match(line, sm, reg);
398 //sm[0]; // whole matched string
400 version_ = sm.str(2);
401 string const file_date = sm.str(3);
404 //sm[5]; // tag or tagdate
405 // FIXME: must double check file is stattable/existing
406 time_t mod = file_.lastModified();
407 string mod_date = rtrim(asctime(gmtime(&mod)), "\n");
408 LYXERR(Debug::LYXVC, "Date in Entries: `" << file_date
409 << "'\nModification date of file: `" << mod_date << '\'');
410 //FIXME this whole locking bussiness is not working under cvs and the machinery
411 // conforms to the ci usage, not cvs.
412 if (file_date == mod_date) {
413 locker_ = "Unlocked";
416 // Here we should also do some more checking
417 // to see if there are conflicts or not.
427 void CVS::registrer(string const & msg)
429 doVCCommand("cvs -q add -m \"" + msg + "\" "
430 + quoteName(onlyFileName(owner_->absFileName())),
431 FileName(owner_->filePath()));
435 string CVS::checkIn(string const & msg)
437 int ret = doVCCommand("cvs -q commit -m \"" + msg + "\" "
438 + quoteName(onlyFileName(owner_->absFileName())),
439 FileName(owner_->filePath()));
440 return ret ? string() : "CVS: Proceeded";
444 bool CVS::checkInEnabled()
446 return !owner_->isReadonly();
450 string CVS::checkOut()
452 // to be sure we test it again...
453 if (!checkOutEnabled())
456 int ret = doVCCommand("cvs -q edit "
457 + quoteName(onlyFileName(owner_->absFileName())),
458 FileName(owner_->filePath()));
462 ret = doVCCommand("cvs update "
463 + quoteName(onlyFileName(owner_->absFileName())),
464 FileName(owner_->filePath()));
465 return ret ? string() : "CVS: Proceeded";
469 bool CVS::checkOutEnabled()
471 return owner_->isReadonly();
475 string CVS::repoUpdate()
477 lyxerr << "Sorry, not implemented." << endl;
482 bool CVS::repoUpdateEnabled()
488 string CVS::lockingToggle()
490 lyxerr << "Sorry, not implemented." << endl;
495 bool CVS::lockingToggleEnabled()
503 // Reverts to the version in CVS repository and
504 // gets the updated version from the repository.
505 string const fil = quoteName(onlyFileName(owner_->absFileName()));
506 // This is sensitive operation, so at lest some check about
507 // existence of cvs program and its file
508 if (doVCCommand("cvs log "+ fil, FileName(owner_->filePath())))
510 FileName f(owner_->absFileName());
512 doVCCommand("cvs -q update " + fil,
513 FileName(owner_->filePath()));
520 // merge the current with the previous version
521 // in a reverse patch kind of way, so that the
522 // result is to revert the last changes.
523 lyxerr << "Sorry, not implemented." << endl;
527 bool CVS::undoLastEnabled()
533 void CVS::getLog(FileName const & tmpf)
535 doVCCommand("cvs log " + quoteName(onlyFileName(owner_->absFileName()))
536 + " > " + quoteName(tmpf.toFilesystemEncoding()),
537 FileName(owner_->filePath()));
541 bool CVS::toggleReadOnlyEnabled()
547 string CVS::revisionInfo(LyXVC::RevisionInfo const info)
549 if (info == LyXVC::File)
555 bool CVS::prepareFileRevision(string const &, string &)
561 bool CVS::prepareFileRevisionEnabled()
567 /////////////////////////////////////////////////////////////////////
571 /////////////////////////////////////////////////////////////////////
573 SVN::SVN(FileName const & m, FileName const & f)
583 FileName const SVN::findFile(FileName const & file)
585 // First we look for the .svn/entries in the same dir
586 // where we have file.
587 FileName const entries(onlyPath(file.absFileName()) + "/.svn/entries");
588 string const tmpf = onlyFileName(file.absFileName());
589 LYXERR(Debug::LYXVC, "LyXVC: Checking if file is under svn in `" << entries
590 << "' for `" << tmpf << '\'');
591 if (entries.isReadableFile()) {
592 // Ok we are at least in a SVN dir. Parse the .svn/entries
593 // and see if we can find this file. We do a fast and
595 ifstream ifs(entries.toFilesystemEncoding().c_str());
596 string line, oldline;
597 while (getline(ifs, line)) {
598 if (line == "dir" || line == "file")
599 LYXERR(Debug::LYXVC, "\tEntries: " << oldline);
600 if (oldline == tmpf && line == "file")
609 void SVN::scanMaster()
611 // vcstatus code is somewhat superflous, until we want
612 // to implement read-only toggle for svn.
613 vcstatus = NOLOCKING;
614 if (checkLockMode()) {
624 bool SVN::checkLockMode()
626 FileName tmpf = FileName::tempName("lyxvcout");
628 LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
629 return N_("Error: Could not generate logfile.");
632 LYXERR(Debug::LYXVC, "Detecting locking mode...");
633 if (doVCCommandCall("svn proplist " + quoteName(file_.onlyFileName())
634 + " > " + quoteName(tmpf.toFilesystemEncoding()),
638 ifstream ifs(tmpf.toFilesystemEncoding().c_str());
644 LYXERR(Debug::LYXVC, line);
645 if (contains(line, "svn:needs-lock"))
648 LYXERR(Debug::LYXVC, "Locking enabled: " << ret);
656 bool SVN::isLocked() const
659 return !file_.isReadOnly();
663 void SVN::registrer(string const & /*msg*/)
665 doVCCommand("svn add -q " + quoteName(onlyFileName(owner_->absFileName())),
666 FileName(owner_->filePath()));
670 string SVN::checkIn(string const & msg)
672 FileName tmpf = FileName::tempName("lyxvcout");
674 LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
675 return N_("Error: Could not generate logfile.");
678 doVCCommand("svn commit -m \"" + msg + "\" "
679 + quoteName(onlyFileName(owner_->absFileName()))
680 + " > " + quoteName(tmpf.toFilesystemEncoding()),
681 FileName(owner_->filePath()));
684 string res = scanLogFile(tmpf, log);
686 frontend::Alert::error(_("Revision control error."),
687 _("Error when committing to repository.\n"
688 "You have to manually resolve the problem.\n"
689 "LyX will reopen the document after you press OK."));
691 fileLock(false, tmpf, log);
694 return log.empty() ? string() : "SVN: " + log;
698 bool SVN::checkInEnabled()
707 // FIXME Correctly return code should be checked instead of this.
708 // This would need another solution than just plain startscript.
709 // Hint from Andre': QProcess::readAllStandardError()...
710 string SVN::scanLogFile(FileName const & f, string & status)
712 ifstream ifs(f.toFilesystemEncoding().c_str());
717 LYXERR(Debug::LYXVC, line << "\n");
719 status += line + "; ";
720 if (prefixIs(line, "C ") || prefixIs(line, "CU ")
721 || contains(line, "Commit failed")) {
725 if (contains(line, "svn:needs-lock")) {
735 void SVN::fileLock(bool lock, FileName const & tmpf, string &status)
737 if (!locked_mode_ || (isLocked() == lock))
740 string const arg = lock ? "lock " : "unlock ";
741 doVCCommand("svn "+ arg + quoteName(onlyFileName(owner_->absFileName()))
742 + " > " + quoteName(tmpf.toFilesystemEncoding()),
743 FileName(owner_->filePath()));
745 // Lock error messages go unfortunately on stderr and are unreachible this way.
746 ifstream ifs(tmpf.toFilesystemEncoding().c_str());
750 if (!line.empty()) status += line + "; ";
754 if (!isLocked() && lock)
755 frontend::Alert::error(_("Revision control error."),
756 _("Error while acquiring write lock.\n"
757 "Another user is most probably editing\n"
758 "the current document now!\n"
759 "Also check the access to the repository."));
760 if (isLocked() && !lock)
761 frontend::Alert::error(_("Revision control error."),
762 _("Error while releasing write lock.\n"
763 "Check the access to the repository."));
767 string SVN::checkOut()
769 FileName tmpf = FileName::tempName("lyxvcout");
771 LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
772 return N_("Error: Could not generate logfile.");
775 doVCCommand("svn update --non-interactive " + quoteName(onlyFileName(owner_->absFileName()))
776 + " > " + quoteName(tmpf.toFilesystemEncoding()),
777 FileName(owner_->filePath()));
780 string const res = scanLogFile(tmpf, log);
782 frontend::Alert::error(_("Revision control error."),
783 bformat(_("Error when updating from repository.\n"
784 "You have to manually resolve the conflicts NOW!\n'%1$s'.\n\n"
785 "After pressing OK, LyX will try to reopen the resolved document."),
786 from_local8bit(res)));
788 fileLock(true, tmpf, log);
791 return log.empty() ? string() : "SVN: " + log;
795 bool SVN::checkOutEnabled()
804 string SVN::repoUpdate()
806 FileName tmpf = FileName::tempName("lyxvcout");
808 LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
809 return N_("Error: Could not generate logfile.");
812 doVCCommand("svn diff " + quoteName(owner_->filePath())
813 + " > " + quoteName(tmpf.toFilesystemEncoding()),
814 FileName(owner_->filePath()));
815 docstring res = tmpf.fileContents("UTF-8");
817 LYXERR(Debug::LYXVC, "Diff detected:\n" << res);
818 docstring const file = from_utf8(owner_->filePath());
819 docstring text = bformat(_("There were detected changes "
820 "in the working directory:\n%1$s\n\n"
821 "In case of file conflict version of the local directory files "
823 "\n\nContinue?"), file);
824 int ret = frontend::Alert::prompt(_("Changes detected"),
825 text, 0, 1, _("&Yes"), _("&No"), _("View &Log ..."));
827 dispatch(FuncRequest(LFUN_DIALOG_SHOW, "file " + tmpf.absFileName()));
828 ret = frontend::Alert::prompt(_("Changes detected"),
829 text, 0, 1, _("&Yes"), _("&No"));
830 hideDialogs("file", 0);
838 // Reverting looks too harsh, see bug #6255.
839 // doVCCommand("svn revert -R " + quoteName(owner_->filePath())
840 // + " > " + quoteName(tmpf.toFilesystemEncoding()),
841 // FileName(owner_->filePath()));
842 // res = "Revert log:\n" + tmpf.fileContents("UTF-8");
843 doVCCommand("svn update --accept mine-full " + quoteName(owner_->filePath())
844 + " > " + quoteName(tmpf.toFilesystemEncoding()),
845 FileName(owner_->filePath()));
846 res += "Update log:\n" + tmpf.fileContents("UTF-8");
848 LYXERR(Debug::LYXVC, res);
854 bool SVN::repoUpdateEnabled()
860 string SVN::lockingToggle()
862 FileName tmpf = FileName::tempName("lyxvcout");
864 LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
865 return N_("Error: Could not generate logfile.");
868 int ret = doVCCommand("svn proplist " + quoteName(onlyFileName(owner_->absFileName()))
869 + " > " + quoteName(tmpf.toFilesystemEncoding()),
870 FileName(owner_->filePath()));
875 string res = scanLogFile(tmpf, log);
876 bool locking = contains(res, "svn:needs-lock");
878 ret = doVCCommand("svn propset svn:needs-lock ON "
879 + quoteName(onlyFileName(owner_->absFileName()))
880 + " > " + quoteName(tmpf.toFilesystemEncoding()),
881 FileName(owner_->filePath()));
883 ret = doVCCommand("svn propdel svn:needs-lock "
884 + quoteName(onlyFileName(owner_->absFileName()))
885 + " > " + quoteName(tmpf.toFilesystemEncoding()),
886 FileName(owner_->filePath()));
891 frontend::Alert::warning(_("VCN File Locking"),
892 (locking ? _("Locking property unset.") : _("Locking property set.")) + "\n"
893 + _("Do not forget to commit the locking property into the repository."),
896 return string("SVN: ") + N_("Locking property set.");
900 bool SVN::lockingToggleEnabled()
908 // Reverts to the version in CVS repository and
909 // gets the updated version from the repository.
910 string const fil = quoteName(onlyFileName(owner_->absFileName()));
912 doVCCommand("svn revert -q " + fil,
913 FileName(owner_->filePath()));
920 // merge the current with the previous version
921 // in a reverse patch kind of way, so that the
922 // result is to revert the last changes.
923 lyxerr << "Sorry, not implemented." << endl;
927 bool SVN::undoLastEnabled()
933 string SVN::revisionInfo(LyXVC::RevisionInfo const info)
935 if (info == LyXVC::Tree) {
936 if (rev_tree_cache_.empty())
937 if (!getTreeRevisionInfo())
938 rev_tree_cache_ = "?";
939 if (rev_tree_cache_ == "?")
942 return rev_tree_cache_;
945 // fill the rest of the attributes for a single file
946 if (rev_file_cache_.empty())
947 if (!getFileRevisionInfo())
948 rev_file_cache_ = "?";
952 if (rev_file_cache_ == "?")
954 return rev_file_cache_;
956 return rev_author_cache_;
958 return rev_date_cache_;
960 return rev_time_cache_;
969 bool SVN::getFileRevisionInfo()
971 FileName tmpf = FileName::tempName("lyxvcout");
973 LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
974 return N_("Error: Could not generate logfile.");
977 doVCCommand("svn info --xml " + quoteName(onlyFileName(owner_->absFileName()))
978 + " > " + quoteName(tmpf.toFilesystemEncoding()),
979 FileName(owner_->filePath()));
984 ifstream ifs(tmpf.toFilesystemEncoding().c_str());
992 LYXERR(Debug::LYXVC, line);
993 if (prefixIs(line, "<commit"))
995 if (c && prefixIs(line, " revision=\"") && suffixIs(line, "\">")) {
996 string l1 = subst(line, "revision=\"", "");
997 string l2 = trim(subst(l1, "\">", ""));
999 rev_file_cache_ = rev = l2;
1001 if (c && prefixIs(line, "<author>") && suffixIs(line, "</author>")) {
1002 string l1 = subst(line, "<author>", "");
1003 string l2 = subst(l1, "</author>", "");
1004 rev_author_cache_ = l2;
1006 if (c && prefixIs(line, "<date>") && suffixIs(line, "</date>")) {
1007 string l1 = subst(line, "<date>", "");
1008 string l2 = subst(l1, "</date>", "");
1009 l2 = split(l2, l1, 'T');
1010 rev_date_cache_ = l1;
1011 l2 = split(l2, l1, '.');
1012 rev_time_cache_ = l1;
1018 return !rev.empty();
1022 bool SVN::getTreeRevisionInfo()
1024 FileName tmpf = FileName::tempName("lyxvcout");
1026 LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
1027 return N_("Error: Could not generate logfile.");
1030 doVCCommand("svnversion -n . > " + quoteName(tmpf.toFilesystemEncoding()),
1031 FileName(owner_->filePath()));
1036 // only first line in case something bad happens.
1037 ifstream ifs(tmpf.toFilesystemEncoding().c_str());
1043 rev_tree_cache_ = line;
1044 return !line.empty();
1048 void SVN::getLog(FileName const & tmpf)
1050 doVCCommand("svn log " + quoteName(onlyFileName(owner_->absFileName()))
1051 + " > " + quoteName(tmpf.toFilesystemEncoding()),
1052 FileName(owner_->filePath()));
1056 bool SVN::prepareFileRevision(string const & revis, string & f)
1058 if (!isStrInt(revis))
1061 int rev = convert<int>(revis);
1063 if (!getFileRevisionInfo())
1066 rev = convert<int>(rev_file_cache_);
1067 // go back for minus rev
1069 rev = rev + convert<int>(rev_file_cache_);
1074 string revname = convert<string>(rev);
1075 FileName tmpf = FileName::tempName("lyxvcrev_" + revname + "_");
1077 LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
1078 return N_("Error: Could not generate logfile.");
1081 doVCCommand("svn cat -r " + revname + " "
1082 + quoteName(onlyFileName(owner_->absFileName()))
1083 + " > " + quoteName(tmpf.toFilesystemEncoding()),
1084 FileName(owner_->filePath()));
1085 if (tmpf.isFileEmpty())
1088 f = tmpf.absFileName();
1093 bool SVN::prepareFileRevisionEnabled()
1100 bool SVN::toggleReadOnlyEnabled()