ide: U++ svn checkout feature

git-svn-id: svn://ultimatepp.org/upp/trunk@12274 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-09-13 11:18:51 +00:00
parent 3b8b6ec7aa
commit e432be354a
17 changed files with 209 additions and 29 deletions

View file

@ -98,7 +98,10 @@ void StoreToWorkspace(T& x, const char *name)
void SerializeWorkspaceConfigs(Stream& s);
extern bool IdeExit;
extern bool IdeAgain; // Used to restart theide after checking out SVN (SetupSVNTrunk)
bool CopyFolder(const char *dst, const char *src, Progress *pi = NULL);
bool HasSvn();
#endif

View file

@ -219,6 +219,7 @@ INITBLOCK {
}
bool IdeExit;
bool IdeAgain;
bool CopyFolder(const char *dst, const char *src, Progress *pi)
{
@ -243,3 +244,10 @@ bool CopyFolder(const char *dst, const char *src, Progress *pi)
}
return true;
}
bool HasSvn()
{
String dummy;
static bool b = Sys("svn", dummy) >= 0;
return b;
}