X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FVCBackend.h;h=a9bdb84a3353ade2fd01b21b10d15e19d0ad3b30;hb=b8ca0e7fd361a280ac9cde57d0cb244b8ecfc116;hp=e5d03331b5b25a277e8e58a516fbf6b87814a467;hpb=c6f6d20cdbddcfffea9ec26bd5288b39134f9308;p=lyx.git diff --git a/src/VCBackend.h b/src/VCBackend.h index e5d03331b5..a9bdb84a33 100644 --- a/src/VCBackend.h +++ b/src/VCBackend.h @@ -78,6 +78,11 @@ public: virtual bool toggleReadOnlyEnabled() = 0; /// Return revision info specified by the argument. virtual std::string revisionInfo(LyXVC::RevisionInfo const info) = 0; + + virtual bool prepareFileRevision(std::string const & rev, std::string & f) = 0; + + virtual bool prepareFileRevisionEnabled() = 0; + protected: /// parse information from the version file virtual void scanMaster() = 0; @@ -152,6 +157,10 @@ public: virtual std::string revisionInfo(LyXVC::RevisionInfo const info); + virtual bool prepareFileRevision(std::string const & rev, std::string & f); + + virtual bool prepareFileRevisionEnabled(); + protected: virtual void scanMaster(); private: @@ -209,6 +218,10 @@ public: virtual std::string revisionInfo(LyXVC::RevisionInfo const info); + virtual bool prepareFileRevision(std::string const & rev, std::string & f); + + virtual bool prepareFileRevisionEnabled(); + protected: virtual void scanMaster(); @@ -265,6 +278,10 @@ public: virtual std::string revisionInfo(LyXVC::RevisionInfo const info); + virtual bool prepareFileRevision(std::string const & rev, std::string & f); + + virtual bool prepareFileRevisionEnabled(); + protected: virtual void scanMaster(); /// Check for messages in svn output. Returns error. @@ -275,14 +292,6 @@ protected: bool isLocked() const; /// acquire/release write lock for the current file void fileLock(bool lock, support::FileName const & tmpf, std::string & status); - /** - * Prepare revision rev of the file into newly created temporary file - * and save the filename into parameter f. - * Parameter rev can be either revision number or negative number - * which is interpreted as how many revision back from the current - * one do we want. rev=0 is reserved for the last (committed) revision. - */ - bool prepareFileRevision(int rev, std::string & f); private: support::FileName file_;