- FileName const cvs_entries(makeAbsPath("CVS/Entries"));
-
- if (cvs_entries.isFileReadable()) {
- LYXERR(Debug::LYXVC)
- << "LyXVC: registering "
- << to_utf8(filename.displayName())
- << " with CVS" << endl;
+ //check in the root directory of the document
+ FileName const cvs_entries(onlyPath(filename.absFilename()) + "/CVS/Entries");
+ FileName const svn_entries(onlyPath(filename.absFilename()) + "/.svn/entries");
+
+ if (svn_entries.isReadableFile()) {
+ LYXERR(Debug::LYXVC, "LyXVC: registering "
+ << to_utf8(filename.displayName()) << " with SVN");
+ vcs.reset(new SVN(cvs_entries, filename));
+
+ } else if (cvs_entries.isReadableFile()) {
+ LYXERR(Debug::LYXVC, "LyXVC: registering "
+ << to_utf8(filename.displayName()) << " with CVS");