• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision28266 (tree)
Time2018-07-07 15:22:46
Authorstefankueng

Log Message

small performance improvement: first check the enum, then if still necessary compare the strings.

Change Summary

Incremental Difference

--- trunk/src/TortoiseProc/RepositoryBrowser.cpp (revision 28265)
+++ trunk/src/TortoiseProc/RepositoryBrowser.cpp (revision 28266)
@@ -4953,10 +4953,10 @@
49534953
49544954 for (std::map<CString,svn_depth_t>::iterator it2 = depths.begin(); it2 != depths.end(); ++it2)
49554955 {
4956+ if (it2->second != svn_depth_unknown)
4957+ continue;
49564958 if (it->first.Compare(it2->first)==0)
49574959 continue;
4958- if (it2->second != svn_depth_unknown)
4959- continue;
49604960
49614961 CString url1 = it->first + L"/";
49624962 if (url1.Compare(it2->first.Left(url1.GetLength()))==0)
Show on old repository browser