namespace fs = boost::filesystem;
-int VCS::doVCCommand(string const & cmd, string const & path)
+int VCS::doVCCommand(string const & cmd, FileName const & path)
{
LYXERR(Debug::LYXVC) << "doVCCommand: " << cmd << endl;
Systemcall one;
- support::Path p(FileName(path));
+ support::Path p(path);
int const ret = one.startscript(Systemcall::Wait, cmd);
return ret;
}
{
LYXERR(Debug::LYXVC) << "LyXVC::RCS: retrieve.\n\t" << file << endl;
VCS::doVCCommand("co -q -r " + quoteName(file.toFilesystemEncoding()),
- string());
+ FileName());
}
cmd += msg;
cmd += "\" ";
cmd += quoteName(onlyFilename(owner_->fileName()));
- doVCCommand(cmd, owner_->filePath());
+ doVCCommand(cmd, FileName(owner_->filePath()));
}
{
doVCCommand("ci -q -u -m\"" + msg + "\" "
+ quoteName(onlyFilename(owner_->fileName())),
- owner_->filePath());
+ FileName(owner_->filePath()));
}
{
owner_->markClean();
doVCCommand("co -q -l " + quoteName(onlyFilename(owner_->fileName())),
- owner_->filePath());
+ FileName(owner_->filePath()));
}
{
doVCCommand("co -f -u" + version() + " "
+ quoteName(onlyFilename(owner_->fileName())),
- owner_->filePath());
+ FileName(owner_->filePath()));
// We ignore changes and just reload!
owner_->markClean();
}
LYXERR(Debug::LYXVC) << "LyXVC: undoLast" << endl;
doVCCommand("rcs -o" + version() + " "
+ quoteName(onlyFilename(owner_->fileName())),
- owner_->filePath());
+ FileName(owner_->filePath()));
}
{
doVCCommand("rlog " + quoteName(onlyFilename(owner_->fileName()))
+ " > " + tmpf.toFilesystemEncoding(),
- owner_->filePath());
+ FileName(owner_->filePath()));
}
{
doVCCommand("cvs -q add -m \"" + msg + "\" "
+ quoteName(onlyFilename(owner_->fileName())),
- owner_->filePath());
+ FileName(owner_->filePath()));
}
{
doVCCommand("cvs -q commit -m \"" + msg + "\" "
+ quoteName(onlyFilename(owner_->fileName())),
- owner_->filePath());
+ FileName(owner_->filePath()));
}
string const fil = quoteName(onlyFilename(owner_->fileName()));
doVCCommand("rm -f " + fil + "; cvs update " + fil,
- owner_->filePath());
+ FileName(owner_->filePath()));
owner_->markClean();
}
{
doVCCommand("cvs log " + quoteName(onlyFilename(owner_->fileName()))
+ " > " + tmpf.toFilesystemEncoding(),
- owner_->filePath());
+ FileName(owner_->filePath()));
}