theide svn: empty commit message warning

git-svn-id: svn://ultimatepp.org/upp/trunk@642 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2008-11-15 15:27:13 +00:00
parent d76d0d29f2
commit f32b938c4b
2 changed files with 8 additions and 0 deletions

View file

@ -278,6 +278,7 @@ INITBLOCK {
void Ide::SyncSvnDirs(const Vector<String>& working)
{
SaveFile();
SvnSync svn;
String msgs;
LoadFromGlobal(msgs, "svn-msgs");

View file

@ -186,6 +186,7 @@ void SvnSync::DoSync()
{
SyncList();
msgmap.Sweep();
again:
if(Execute() != IDOK || list.GetCount() == 0) {
int repoi = 0;
for(int i = 0; i < list.GetCount(); i++)
@ -193,6 +194,12 @@ void SvnSync::DoSync()
msgmap.GetAdd(works[repoi++].working) = list.Get(i, 3);
return;
}
for(int i = 0; i < list.GetCount(); i++)
if(list.Get(i, 0) == MESSAGE && IsNull(list.Get(i, 3))) {
if(PromptYesNo("Commit message is empty.&Do you want to continue?"))
break;
goto again;
}
SysConsole sys;
int repoi = 0;
int i = 0;