X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FVCBackend.h;h=467a094d937060689a37a882b648b139383745ed;hb=7c3fd636469b0a7f50f3515d100d9e957cda16b9;hp=ab7f52fd9d6399bc06a71172d5034b18da1f5472;hpb=22b7ad2b0a6c228f234bcf7f5a0b164fca17e122;p=lyx.git diff --git a/src/VCBackend.h b/src/VCBackend.h index ab7f52fd9d..467a094d93 100644 --- a/src/VCBackend.h +++ b/src/VCBackend.h @@ -33,12 +33,9 @@ public: UNLOCKED, LOCKED, NOLOCKING, - /// This file is not in version control, but it could be aded - /// (because the path is under version control) - UNVERSIONED, }; - VCS(Buffer * b) : owner_(b) {} + VCS(Buffer * b) : vcstatus(NOLOCKING), owner_(b) {} virtual ~VCS() {} /// register a file for version control @@ -52,7 +49,7 @@ public: /// copy a file. Return non-empty log on success, empty log on failure. virtual std::string copy(support::FileName const &, std::string const &) = 0; /// check in the current revision. - /// \p log is non-empty on success and may be empty on failure. + /// \p log is non-empty on success and may be empty on failure. virtual LyXVC::CommandResult checkIn(std::string const & msg, std::string & log) = 0; /// can this operation be processed in the current VCS? @@ -105,8 +102,8 @@ public: virtual bool prepareFileRevisionEnabled() = 0; /// Check the directory of file and all parent directories - /// for the existence of the given pathname - static bool checkparentdirs(support::FileName const & file, std::string const & pathname); + /// for the existence of repository-info like .git or .svn + static bool checkparentdirs(support::FileName const & file, std::string const & vcsdir); protected: /// parse information from the version file