MCPcopy Create free account
hub / github.com/Kitware/CMake / DetermineType

Function DetermineType

Source/CTest/cmCTestUpdateCommand.cxx:74–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74int DetermineType(std::string const& cmd)
75{
76 std::string stype = cmSystemTools::LowerCase(cmd);
77 if (stype.find("cvs") != std::string::npos) {
78 return e_CVS;
79 }
80 if (stype.find("svn") != std::string::npos) {
81 return e_SVN;
82 }
83 if (stype.find("bzr") != std::string::npos) {
84 return e_BZR;
85 }
86 if (stype.find("git") != std::string::npos) {
87 return e_GIT;
88 }
89 if (stype.find("hg") != std::string::npos) {
90 return e_HG;
91 }
92 if (stype.find("p4") != std::string::npos) {
93 return e_P4;
94 }
95 return e_UNKNOWN;
96}
97
98int DetectVCS(std::string const& dir)
99{

Callers 1

ExecuteUpdateMethod · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…