From c697f9f6b990809adb6ed198fa05ae43c0b9a26c Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Mon, 27 Oct 2008 01:06:24 +0000 Subject: [PATCH] Small glitch in RCS registering procedure, useless parse of wrong file (part of 5389). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27144 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyXVC.cpp | 2 +- src/VCBackend.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/LyXVC.cpp b/src/LyXVC.cpp index 5b510ae0f3..7f5beea704 100644 --- a/src/LyXVC.cpp +++ b/src/LyXVC.cpp @@ -122,7 +122,7 @@ void LyXVC::registrer() } else { LYXERR(Debug::LYXVC, "LyXVC: registering " << to_utf8(filename.displayName()) << " with RCS"); - vcs.reset(new RCS(filename)); + vcs.reset(new RCS(FileName())); } vcs->owner(owner_); diff --git a/src/VCBackend.cpp b/src/VCBackend.cpp index 806c795282..1def1af1b0 100644 --- a/src/VCBackend.cpp +++ b/src/VCBackend.cpp @@ -102,6 +102,9 @@ void RCS::retrieve(FileName const & file) void RCS::scanMaster() { + if (master_.empty()) + return; + LYXERR(Debug::LYXVC, "LyXVC::RCS: scanMaster: " << master_); ifstream ifs(master_.toFilesystemEncoding().c_str());