{
LYXERR(Debug::LYXVC, "LyXVC::RCS: retrieve.\n\t" << file);
// The caller ensures that file does not exist, so no need to check that.
- return doVCCommandCall("co -q -r " + quoteName(file.toFilesystemEncoding()),
- FileName()) == 0;
+ int const ret = doVCCommandCall("co -q -r " + quoteName(file.toFilesystemEncoding()));
+ return ret == 0;
}
* @param path the path from which to execute
* @return exit status
*/
- static int doVCCommandCall(std::string const & cmd, support::FileName const & path);
+ static int doVCCommandCall(std::string const & cmd,
+ support::FileName const & path = support::FileName());
/// The status of the VC controlled file.
VCStatus vcstatus_;
FileName const findtexfile(string const & fil, string const & /*format*/,
bool const onlykpse)
{
- /* There is no problem to extend this function too use other
+ /* There is no problem to extend this function to use other
methods to look for files. It could be setup to look
in environment paths and also if wanted as a last resort
to a recursive find. One of the easier extensions would