FileName(owner_->filePath()));
}
+bool RCS::checkInEnabled()
+{
+ return owner_ && !owner_->isReadonly();
+}
void RCS::checkOut()
{
}
+bool RCS::checkOutEnabled()
+{
+ return owner_ && owner_->isReadonly();
+}
+
+
void RCS::revert()
{
doVCCommand("co -f -u" + version() + " "
}
+bool RCS::undoLastEnabled()
+{
+ return true;
+}
+
+
void RCS::getLog(FileName const & tmpf)
{
doVCCommand("rlog " + quoteName(onlyFilename(owner_->absFileName()))
// where we have file.
FileName const entries(onlyPath(file.absFilename()) + "/CVS/Entries");
string const tmpf = '/' + onlyFilename(file.absFilename()) + '/';
- LYXERR(Debug::LYXVC, "LyXVC: Checking in `" << entries
+ LYXERR(Debug::LYXVC, "LyXVC: Checking if file is under cvs in `" << entries
<< "' for `" << tmpf << '\'');
if (entries.isReadableFile()) {
// Ok we are at least in a CVS dir. Parse the CVS/Entries
}
+bool CVS::checkInEnabled()
+{
+ return true;
+}
+
+
void CVS::checkOut()
{
// cvs update or perhaps for cvs this should be a noop
}
+bool CVS::checkOutEnabled()
+{
+ return false;
+}
+
+
void CVS::revert()
{
// Reverts to the version in CVS repository and
}
+bool CVS::undoLastEnabled()
+{
+ return false;
+}
+
+
void CVS::getLog(FileName const & tmpf)
{
doVCCommand("cvs log " + quoteName(onlyFilename(owner_->absFileName()))