mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Register file with CVS if it's in a CVS directory.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3834 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ddabf92e20
commit
93fb0890fa
@ -1,3 +1,8 @@
|
||||
2002-03-26 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||
|
||||
* lyxvc.C (registrer): register the file with CVS if it's in a CVS
|
||||
directory.
|
||||
|
||||
2002-03-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||
|
||||
* lyxvc.C: reorder includes.
|
||||
|
20
src/lyxvc.C
20
src/lyxvc.C
@ -76,10 +76,24 @@ void LyXVC::buffer(Buffer * buf)
|
||||
void LyXVC::registrer()
|
||||
{
|
||||
// it is very likely here that the vcs is not created yet...
|
||||
// so... we use RCS as default, later this should perhaps be
|
||||
// a lyxrc option.
|
||||
if (!vcs) {
|
||||
vcs = new RCS(owner_->fileName());
|
||||
string const cvs_entries = "CVS/Entries";
|
||||
|
||||
if (IsFileReadable(cvs_entries)) {
|
||||
lyxerr[Debug::LYXVC]
|
||||
<< "LyXVC: registering "
|
||||
<< MakeDisplayPath(owner_->fileName())
|
||||
<< " with CVS" << endl;
|
||||
vcs = new CVS(cvs_entries, owner_->fileName());
|
||||
|
||||
} else {
|
||||
lyxerr[Debug::LYXVC]
|
||||
<< "LyXVC: registering "
|
||||
<< MakeDisplayPath(owner_->fileName())
|
||||
<< " with RCS" << endl;
|
||||
vcs = new RCS(owner_->fileName());
|
||||
}
|
||||
|
||||
vcs->owner(owner_);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user