This commit is contained in:
Richard Kimberly Heck 2020-12-18 15:53:45 -05:00
parent fdbbddecb7
commit 750af39139

View File

@ -98,9 +98,10 @@ bool LyXVC::file_found_hook(FileName const & fn)
bool LyXVC::file_not_found_hook(FileName const & fn)
{
// Check if file is under RCS.
// This happens if we are trying to load non existent
// file on disk, but existent in ,v version.
// Check if file is under version control.
// This happens if we are trying to load does not exist.
// It may yet exist in the repository and so could be
// checked out.
bool foundRCS = !RCS::findFile(fn).empty();
bool foundCVS = foundRCS ? false : !CVS::findFile(fn).empty();
bool foundSVN = (foundRCS || foundCVS) ? false : !SVN::findFile(fn).empty();