mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-11 22:03:09 -06:00
.usvn: detect svn working copies correctly for newer versions (RM #300)
git-svn-id: svn://ultimatepp.org/upp/trunk@5144 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
281b156f59
commit
0bc5cf9ab6
1 changed files with 9 additions and 1 deletions
|
|
@ -368,7 +368,15 @@ String SvnSync::GetMsgs()
|
|||
|
||||
bool IsSvnDir(const String& p)
|
||||
{
|
||||
return DirectoryExists(AppendFileName(p, ".svn")) || DirectoryExists(AppendFileName(p, "_svn"));
|
||||
if(DirectoryExists(AppendFileName(p, ".svn")) || DirectoryExists(AppendFileName(p, "_svn")))
|
||||
return true;
|
||||
String path(p);
|
||||
while(path.GetCount()>1){
|
||||
DirectoryUp(path);
|
||||
if(DirectoryExists(AppendFileName(path, ".svn")))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef flagMAIN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue