| Summary: | just checking for CVS subdir is not reliable enough | ||
|---|---|---|---|
| Product: | [Applications] cervisia | Reporter: | Hendrik Sattler <sattler2000> |
| Component: | general | Assignee: | Christian Loose <christian.loose> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 2.1.1 | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Hendrik Sattler
2004-03-31 13:59:44 UTC
So far this wasn't seen as a problem, but I agree that the test for a CVS controlled folder should be made safer. Thanks for the report. Christian CVS commit by raabe:
- Look harder for whether a directory really is under CVS control by not
only checking for the 'CVS/' subdirectory but also looking for some
files which always seem to be there ("Entries", "Repository" and "Root").
CCMAIL:78800-done@bugs.kde.org
M +4 -1 repository.cpp 1.13
--- kdesdk/cervisia/cvsservice/repository.cpp #1.12:1.13
@@ -133,5 +133,8 @@ bool Repository::setWorkingCopy(const QS
// is this really a cvs-controlled directory?
const QFileInfo cvsDirInfo(path + "/CVS");
- if( !cvsDirInfo.exists() || !cvsDirInfo.isDir() )
+ if( !cvsDirInfo.exists() || !cvsDirInfo.isDir() ||
+ !QFile::exists( cvsDirInfo.dirPath() + "/Entries" ) ||
+ !QFile::exists( cvsDirInfo.dirPath() + "/Repository" ) ||
+ !QFile::exists( cvsDirInfo.dirPath() + "/Root" ) )
return false;
|