* @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_;
explicit
RCS(support::FileName const & m, Buffer * b);
- /// return the revision file for the given file, if found
+ /// Determine whether the file is under RCS control
+ /// \return the file containing the meta-data (FILE,v) if so, else empty
static support::FileName const findFile(support::FileName const & file);
/// get file from repo, the caller must ensure that it does not exist locally
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.
explicit
CVS(support::FileName const & m, Buffer * b);
- /// return the revision file for the given file, if found
+ /// Determine whether the file is under CVS control
+ /// \return the file containing the meta-data (CVS/entries) if so, else empty
static support::FileName const findFile(support::FileName const & file);
/// get file from repo, the caller must ensure that it does not exist locally
};
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);
- /// return the revision file for the given file, if found
- static support::FileName const findFile(support::FileName const & file);
+ /// Determine whether the file is under SVN control
+ 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);
public:
///
explicit
- GIT(support::FileName const & m, Buffer * b);
+ GIT(Buffer * b);
- /// return the revision file for the given file, if found
- static support::FileName const findFile(support::FileName const & file);
+ /// Determine whether the file is under GIT control
+ /// \return the file itself if so, else empty
+ 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);