+/**
+ * \file vc-backend.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
#include <config.h>
#include "vc-backend.h"
#include "debug.h"
#include "buffer.h"
-#include "BufferView.h"
#include "frontends/LyXView.h"
#include "funcrequest.h"
#include <fstream>
+using namespace lyx::support;
+
#ifndef CXX_GLOBAL_CSTD
using std::asctime;
using std::gmtime;
}
-void VCS::reload()
-{
- owner_->getUser()->reload();
- /* Watch out ! We have deleted ourselves here
- * via the ->reload() !
- */
-}
-
-
RCS::RCS(string const & m)
{
master_ = m;
doVCCommand("ci -q -u -m\"" + msg + "\" \""
+ OnlyFilename(owner_->fileName()) + '"',
owner_->filePath());
- reload();
}
doVCCommand("co -q -l \""
+ OnlyFilename(owner_->fileName()) + '"',
owner_->filePath());
- reload();
}
owner_->filePath());
// We ignore changes and just reload!
owner_->markClean();
- reload();
}
doVCCommand("cvs -q add -m \"" + msg + "\" \""
+ OnlyFilename(owner_->fileName()) + '"',
owner_->filePath());
- reload();
}
doVCCommand("cvs -q commit -m \"" + msg + "\" \""
+ OnlyFilename(owner_->fileName()) + '"',
owner_->filePath());
- reload();
}
doVCCommand("rm -f \"" + fil + "\"; cvs update \"" + fil + '"',
owner_->filePath());
owner_->markClean();
- reload();
}