commitmonitor Code
Monitor your SVN repositories and notifies you on new commits
Brought to you by:
steveking
changed | /trunk/src/HiddenWindow.cpp |
changed | /trunk/src/MainDlg.cpp |
changed | /trunk/src/UrlInfo.cpp |
changed | /trunk/src/UrlInfo.h |
--- a/trunk/src/HiddenWindow.cpp +++ b/trunk/src/HiddenWindow.cpp @@ -509,6 +509,9 @@ popupText += _T(", "); popupText += newinfo.name; } + writeIt = pWrite->find(it->first); + if (writeIt != pWrite->end()) + writeIt->second.parentpath = true; m_UrlInfos.ReleaseWriteData(); // update search position:
--- a/trunk/src/MainDlg.cpp +++ b/trunk/src/MainDlg.cpp @@ -836,6 +836,17 @@ { const CUrlInfo * info = &pRead->find(*(wstring*)itemex.lParam)->second; + if ((!info->error.empty())&&(!info->parentpath)) + { + // there was an error when we last tried to access this url. + // Show a message box with the error. + int len = info->error.length()+info->url.length()+1024; + TCHAR * pBuf = new TCHAR[len]; + _stprintf_s(pBuf, len, _T("An error occurred the last time CommitMonitor\ntried to access the url: %s\n\n%s"), info->url.c_str(), info->error.c_str()); + ::MessageBox(*this, pBuf, _T("CommitMonitor"), MB_ICONERROR); + delete [] pBuf; + } + m_bBlockListCtrlUI = true; DWORD exStyle = LVS_EX_FULLROWSELECT | LVS_EX_DOUBLEBUFFER; ListView_DeleteAllItems(m_hListControl);