| 72 | } |
| 73 | |
| 74 | int 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 | |
| 98 | int DetectVCS(std::string const& dir) |
| 99 | { |
no test coverage detected
searching dependent graphs…