- // We are in a CVS-managed directory
- // See if the file is known to CVS
- string const cmd = "cvs log " + quoteName(file.toFilesystemEncoding());
- int const ret = doVCCommandCall(cmd, file.onlyPath());
- if (ret == 0)
- return entries;
+ // 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.
+ ifstream ifs(entries.toFilesystemEncoding().c_str());
+ string line;
+ while (getline(ifs, line)) {
+ LYXERR(Debug::LYXVC, "\tEntries: " << line);
+ if (contains(line, tmpf))
+ return entries;
+ }