* @param path the path from which to execute
* @return exit status
*/
- static int doVCCommandCall(std::string const & cmd, support::FileName const & path);
-
- /**
- * The master VC file. For RCS this is *,v or RCS/ *,v. master should
- * have full path.
- */
- support::FileName master_;
+ static int doVCCommandCall(std::string const & cmd,
+ support::FileName const & path = support::FileName());
/// The status of the VC controlled file.
VCStatus vcstatus_;
/// get file from repo, the caller must ensure that it does not exist locally
static bool retrieve(support::FileName const & file);
- std::string vcname() const override { return "RCS"; };
+ std::string vcname() const override { return "RCS"; }
void registrer(std::string const & msg) override;
void scanMaster() override;
private:
bool getRevisionInfo();
+ /**
+ * The master VC file. For RCS this is *,v or RCS/ *,v.
+ * master should have full path.
+ */
+ support::FileName master_;
+
/**
* The version of the VC file. I am not sure if this can be a
* string or if it must be a float/int.
/// get file from repo, the caller must ensure that it does not exist locally
static bool retrieve(support::FileName const & file);
- std::string vcname() const override { return "CVS"; };
+ std::string vcname() const override { return "CVS"; }
void registrer(std::string const & msg) override;
};
private:
+ /**
+ * The master VC file. For CVS this is CVS/Entries
+ * master should have full path.
+ */
+ support::FileName master_;
// revision number from scanMaster
std::string version_;
public:
///
explicit
- SVN(support::FileName const & m, Buffer * b);
+ SVN(Buffer * b);
/// Determine whether the file is under SVN control
- /// \return the file itself if so, else empty
- static support::FileName const findFile(support::FileName const & file);
+ static bool findFile(support::FileName const & file);
/// get file from repo, the caller must ensure that it does not exist locally
static bool retrieve(support::FileName const & file);
- std::string vcname() const override { return "SVN"; };
+ std::string vcname() const override { return "SVN"; }
void registrer(std::string const & msg) override;
public:
///
explicit
- GIT(support::FileName const & m, Buffer * b);
+ GIT(Buffer * b);
- /// Determine whether the file is under RCS control
+ /// Determine whether the file is under GIT control
/// \return the file itself if so, else empty
- static support::FileName const findFile(support::FileName const & file);
+ static bool findFile(support::FileName const & file);
/// get file from repo, the caller must ensure that it does not exist locally
static bool retrieve(support::FileName const & file);
- std::string vcname() const override { return "GIT"; };
+ std::string vcname() const override { return "GIT"; }
void registrer(std::string const & msg) override;