|
@@ -119,7 +119,7 @@ void CSVNProc::SVNProcess(std::string strSVNAddress, std::string strSavePath, DW
|
|
// 目前只针对更新指定版本;
|
|
// 目前只针对更新指定版本;
|
|
TCHAR szCommand2[MAX_PATH] = { 0 };
|
|
TCHAR szCommand2[MAX_PATH] = { 0 };
|
|
_stprintf_s(szCommand, _T("At revision %ld."), dwSVNVersion);
|
|
_stprintf_s(szCommand, _T("At revision %ld."), dwSVNVersion);
|
|
- _stprintf_s(szCommand, _T("Updated to revision %ld."), dwSVNVersion);
|
|
|
|
|
|
+ _stprintf_s(szCommand2, _T("Updated to revision %ld."), dwSVNVersion);
|
|
if (!str.IsEmpty() && (str.CompareNoCase(szCommand) == 0 || str.CompareNoCase(szCommand2) == 0)) {
|
|
if (!str.IsEmpty() && (str.CompareNoCase(szCommand) == 0 || str.CompareNoCase(szCommand2) == 0)) {
|
|
// 表示更新成功;
|
|
// 表示更新成功;
|
|
m_bNeedUpdate = FALSE;
|
|
m_bNeedUpdate = FALSE;
|
|
@@ -337,6 +337,9 @@ BOOL CSVNMgr::HasNewVersion()
|
|
{
|
|
{
|
|
CSVNProc* pSVN = NULL;
|
|
CSVNProc* pSVN = NULL;
|
|
int nSize = m_arySVN.GetSize();
|
|
int nSize = m_arySVN.GetSize();
|
|
|
|
+ if (nSize == 0)
|
|
|
|
+ return TRUE;
|
|
|
|
+
|
|
for (int i = 0; i < nSize; i++) {
|
|
for (int i = 0; i < nSize; i++) {
|
|
pSVN = m_arySVN.GetAt(i);
|
|
pSVN = m_arySVN.GetAt(i);
|
|
if (pSVN) {
|
|
if (pSVN) {
|