using lyx::support::AddName;
using lyx::support::AddPath;
using lyx::support::contains;
using lyx::support::AddName;
using lyx::support::AddPath;
using lyx::support::contains;
using lyx::support::OnlyFilename;
using lyx::support::OnlyPath;
using lyx::support::Path;
using lyx::support::OnlyFilename;
using lyx::support::OnlyPath;
using lyx::support::Path;
using lyx::support::rtrim;
using lyx::support::split;
using lyx::support::Systemcall;
using lyx::support::rtrim;
using lyx::support::split;
using lyx::support::Systemcall;
void RCS::retrieve(string const & file)
{
lyxerr[Debug::LYXVC] << "LyXVC::RCS: retrieve.\n\t" << file << endl;
void RCS::retrieve(string const & file)
{
lyxerr[Debug::LYXVC] << "LyXVC::RCS: retrieve.\n\t" << file << endl;
doVCCommand(cmd, owner_->filePath());
}
void RCS::checkIn(string const & msg)
{
doVCCommand(cmd, owner_->filePath());
}
void RCS::checkIn(string const & msg)
{
- doVCCommand("ci -q -u -m\"" + msg + "\" \""
- + OnlyFilename(owner_->fileName()) + '"',
+ doVCCommand("ci -q -u -m\"" + msg + "\" "
+ + QuoteName(OnlyFilename(owner_->fileName())),
- doVCCommand("co -f -u" + version() + " \""
- + OnlyFilename(owner_->fileName()) + '"',
+ doVCCommand("co -f -u" + version() + " "
+ + QuoteName(OnlyFilename(owner_->fileName())),
- doVCCommand("rcs -o" + version() + " \""
- + OnlyFilename(owner_->fileName()) + '"',
+ doVCCommand("rcs -o" + version() + " "
+ + QuoteName(OnlyFilename(owner_->fileName())),
string const tmpf = "/" + OnlyFilename(file) + "/";
lyxerr[Debug::LYXVC] << "LyXVC: checking in `" << dir
<< "' for `" << tmpf << '\'' << endl;
string const tmpf = "/" + OnlyFilename(file) + "/";
lyxerr[Debug::LYXVC] << "LyXVC: checking in `" << dir
<< "' for `" << tmpf << '\'' << endl;
// Ok we are at least in a CVS dir. Parse the CVS/Entries
// and see if we can find this file. We do a fast and
// dirty parse here.
// Ok we are at least in a CVS dir. Parse the CVS/Entries
// and see if we can find this file. We do a fast and
// dirty parse here.
string mod_date = rtrim(asctime(gmtime(&mod)), "\n");
lyxerr[Debug::LYXVC]
<< "Date in Entries: `" << file_date
string mod_date = rtrim(asctime(gmtime(&mod)), "\n");
lyxerr[Debug::LYXVC]
<< "Date in Entries: `" << file_date
- doVCCommand("cvs -q add -m \"" + msg + "\" \""
- + OnlyFilename(owner_->fileName()) + '"',
+ doVCCommand("cvs -q add -m \"" + msg + "\" "
+ + QuoteName(OnlyFilename(owner_->fileName())),
- doVCCommand("cvs -q commit -m \"" + msg + "\" \""
- + OnlyFilename(owner_->fileName()) + '"',
+ doVCCommand("cvs -q commit -m \"" + msg + "\" "
+ + QuoteName(OnlyFilename(owner_->fileName())),