From: Pavel Sanda Date: Wed, 7 Oct 2009 00:11:15 +0000 (+0000) Subject: Coding style X-Git-Tag: 2.0.0~5396 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9467c8a809cc7ef0f69bbaf5e49539519011398d;p=features.git Coding style git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31549 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/VCBackend.cpp b/src/VCBackend.cpp index 6f6b60590e..31ae50e3f2 100644 --- a/src/VCBackend.cpp +++ b/src/VCBackend.cpp @@ -36,13 +36,15 @@ using boost::smatch; namespace lyx { -int VCS::doVCCommandCall(string const & cmd, FileName const & path){ +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); } + int VCS::doVCCommand(string const & cmd, FileName const & path) { if (owner_) @@ -185,11 +187,13 @@ string RCS::checkIn(string const & msg) return ret ? string() : "RCS: Proceeded"; } + bool RCS::checkInEnabled() { return owner_ && !owner_->isReadonly(); } + string RCS::checkOut() { owner_->markClean(); @@ -458,6 +462,7 @@ void CVS::getLog(FileName const & tmpf) FileName(owner_->filePath())); } + bool CVS::toggleReadOnlyEnabled() { return false; @@ -793,6 +798,7 @@ bool SVN::lockingToggleEnabled() return true; } + void SVN::revert() { // Reverts to the version in CVS repository and