• R/O
  • HTTP
  • SSH
  • HTTPS

TortoiseGitJp: Commit

TortoiseGit日本語言語ファイル作成


Commit MetaInfo

Revisión9436671c17f2724c3f7d382277a9e794cb8b29f3 (tree)
Tiempo2010-01-14 15:15:18
AutorFrank Li <lznuaa@gmai...>
CommiterFrank Li

Log Message

Fix don't using cache bug and disable filter when fetch log

Signed-off-by: Frank Li <lznuaa@gmail.com>

Cambiar Resumen

Diferencia incremental

--- a/src/TortoiseProc/GitLogCache.cpp
+++ b/src/TortoiseProc/GitLogCache.cpp
@@ -34,7 +34,7 @@ GitRev * CLogCache::GetCacheData(CGitHash &hash)
3434 if(!LoadOneItem(rev,m_HashMapIndex[hash]))
3535 {
3636 m_HashMap[hash].CopyFrom(rev);
37- rev.m_IsFull=true;
37+ m_HashMap[hash].m_IsFull=true;
3838
3939 return &m_HashMap[hash];
4040 }
--- a/src/TortoiseProc/GitLogListBase.cpp
+++ b/src/TortoiseProc/GitLogListBase.cpp
@@ -2125,7 +2125,7 @@ UINT CGitLogListBase::LogThread()
21252125 m_arShownList.Add(pRev);
21262126 this->m_critSec.Unlock();
21272127
2128- if(t2-t1>500 )
2128+ if(t2-t1>500 || (m_logEntries.size()-oldsize >100))
21292129 {
21302130 //update UI
21312131 int percent=m_logEntries.size()*100/total + GITLOG_START+1;
--- a/src/TortoiseProc/LogDlg.cpp
+++ b/src/TortoiseProc/LogDlg.cpp
@@ -365,9 +365,13 @@ LRESULT CLogDlg::OnLogListLoading(WPARAM wParam, LPARAM /*lParam*/)
365365 //DialogEnableWindow(IDC_SHOWWHOLEPROJECT, FALSE);
366366 //DialogEnableWindow(IDC_LOG_FIRSTPARENT, FALSE);
367367 DialogEnableWindow(IDC_STATBUTTON, FALSE);
368- DialogEnableWindow(IDC_REFRESH, FALSE);
368+ //DialogEnableWindow(IDC_REFRESH, FALSE);
369369 DialogEnableWindow(IDC_HIDEPATHS,FALSE);
370-
370+
371+ DialogEnableWindow(IDC_DATEFROM,FALSE);
372+ DialogEnableWindow(IDC_DATETO,FALSE);
373+
374+ DialogEnableWindow(IDC_SEARCHEDIT,FALSE);
371375
372376 }else if( cur == GITLOG_END)
373377 {
@@ -389,6 +393,11 @@ LRESULT CLogDlg::OnLogListLoading(WPARAM wParam, LPARAM /*lParam*/)
389393 DialogEnableWindow(IDC_REFRESH, TRUE);
390394 DialogEnableWindow(IDC_HIDEPATHS,TRUE);
391395
396+ DialogEnableWindow(IDC_DATEFROM,TRUE);
397+ DialogEnableWindow(IDC_DATETO,TRUE);
398+
399+ DialogEnableWindow(IDC_SEARCHEDIT,TRUE);
400+
392401 // PostMessage(WM_TIMER, LOGFILTER_TIMER);
393402 GetDlgItem(IDC_PROGRESS)->ShowWindow(FALSE);
394403 //CTime time=m_LogList.GetOldestTime();
Show on old repository browser