if (ret && reportError) {
docstring rcsmsg;
if (prefixIs(cmd, "ci "))
if (ret && reportError) {
docstring rcsmsg;
if (prefixIs(cmd, "ci "))
frontend::Alert::error(_("Revision control error."),
bformat(_("Some problem occurred while running the command:\n"
"'%1$s'.") + rcsmsg,
frontend::Alert::error(_("Revision control error."),
bformat(_("Some problem occurred while running the command:\n"
"'%1$s'.") + rcsmsg,
{
LYXERR(Debug::LYXVC, "LyXVC::RCS: retrieve.\n\t" << file);
// The caller ensures that file does not exist, so no need to check that.
{
LYXERR(Debug::LYXVC, "LyXVC::RCS: retrieve.\n\t" << file);
// The caller ensures that file does not exist, so no need to check that.
} else {
FileName bdir(addPath(master_.onlyPath().absFileName(),"Base"));
FileName base(addName(bdir.absFileName(),name));
// if base version is existent "cvs edit" was used to lock
} else {
FileName bdir(addPath(master_.onlyPath().absFileName(),"Base"));
FileName base(addName(bdir.absFileName(),name));
// if base version is existent "cvs edit" was used to lock
return doVCCommand("cvs -q edit " + getTarget(File),
FileName(owner_->filePath()));
}
return doVCCommand("cvs -q edit " + getTarget(File),
FileName(owner_->filePath()));
}
return doVCCommand("cvs -q unedit " + getTarget(File),
FileName(owner_->filePath()));
}
return doVCCommand("cvs -q unedit " + getTarget(File),
FileName(owner_->filePath()));
}
bool found = 0 == doVCCommandCall("svn info " + quoteName(fname),
file.onlyPath());
LYXERR(Debug::LYXVC, "SVN control: " << (found ? "enabled" : "disabled"));
bool found = 0 == doVCCommandCall("svn info " + quoteName(fname),
file.onlyPath());
LYXERR(Debug::LYXVC, "SVN control: " << (found ? "enabled" : "disabled"));
{
// vcstatus code is somewhat superflous,
// until we want to implement read-only toggle for svn.
{
// vcstatus code is somewhat superflous,
// until we want to implement read-only toggle for svn.
FileName tmpf = tempfile.name();
if (tmpf.empty()) {
LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
FileName tmpf = tempfile.name();
if (tmpf.empty()) {
LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
tmpf.refresh();
bool found = !tmpf.isFileEmpty();
LYXERR(Debug::LYXVC, "GIT control: " << (found ? "enabled" : "disabled"));
tmpf.refresh();
bool found = !tmpf.isFileEmpty();
LYXERR(Debug::LYXVC, "GIT control: " << (found ? "enabled" : "disabled"));
{
// vcstatus code is somewhat superflous,
// until we want to implement read-only toggle for git.
{
// vcstatus code is somewhat superflous,
// until we want to implement read-only toggle for git.