This commit is contained in:
Richard Kimberly Heck 2020-12-18 17:35:58 -05:00
parent 49f019e129
commit 8c805db9d3
3 changed files with 5 additions and 4 deletions

View File

@ -161,8 +161,8 @@ bool RCS::retrieve(FileName const & file)
{
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;
}

View File

@ -129,7 +129,8 @@ protected:
* @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_;

View File

@ -1147,7 +1147,7 @@ cmd_ret const runCommand(string const & cmd)
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