mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Implement checkout for svn.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25788 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
38edfeb537
commit
f625f3e0dc
@ -1061,8 +1061,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
|||||||
LASSERT(lyx_view_ && lyx_view_->buffer(), /**/);
|
LASSERT(lyx_view_ && lyx_view_->buffer(), /**/);
|
||||||
if (!ensureBufferClean(view()))
|
if (!ensureBufferClean(view()))
|
||||||
break;
|
break;
|
||||||
if (lyx_view_->buffer()->lyxvc().inUse()
|
if (lyx_view_->buffer()->lyxvc().inUse()) {
|
||||||
&& lyx_view_->buffer()->isReadonly()) {
|
|
||||||
lyx_view_->buffer()->lyxvc().checkOut();
|
lyx_view_->buffer()->lyxvc().checkOut();
|
||||||
reloadBuffer();
|
reloadBuffer();
|
||||||
}
|
}
|
||||||
|
@ -464,13 +464,14 @@ bool SVN::checkInEnabled()
|
|||||||
|
|
||||||
void SVN::checkOut()
|
void SVN::checkOut()
|
||||||
{
|
{
|
||||||
lyxerr << "Sorry not implemented." << endl;
|
doVCCommand("svn update " + quoteName(onlyFilename(owner_->absFileName())),
|
||||||
|
FileName(owner_->filePath()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool SVN::checkOutEnabled()
|
bool SVN::checkOutEnabled()
|
||||||
{
|
{
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -66,6 +66,7 @@ public:
|
|||||||
/// return the lock status of this file
|
/// return the lock status of this file
|
||||||
VCStatus status() const { return vcstatus; }
|
VCStatus status() const { return vcstatus; }
|
||||||
/// do we need special handling for read-only toggling?
|
/// do we need special handling for read-only toggling?
|
||||||
|
/// (also used for check-out operation)
|
||||||
virtual bool toggleReadOnlyEnabled() = 0;
|
virtual bool toggleReadOnlyEnabled() = 0;
|
||||||
protected:
|
protected:
|
||||||
/// parse information from the version file
|
/// parse information from the version file
|
||||||
|
Loading…
Reference in New Issue
Block a user