Menu

Commit [r128]  Maximize  Restore  History

Show an error message box when selecting a tree item, if there was an error the last time that url was accessed.

tortoisesvn 2007-05-04

changed /trunk/src/HiddenWindow.cpp
changed /trunk/src/MainDlg.cpp
changed /trunk/src/UrlInfo.cpp
changed /trunk/src/UrlInfo.h
/trunk/src/HiddenWindow.cpp Diff Switch to side-by-side view
--- 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:
/trunk/src/MainDlg.cpp Diff Switch to side-by-side view
--- 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);
/trunk/src/UrlInfo.cpp Diff Switch to side-by-side view
Loading...
/trunk/src/UrlInfo.h Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.