From cf5f152b854aadf9859a75eaf35c4a4f701bbad4 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 25 Jun 2016 11:52:49 +0200 Subject: [PATCH] Block path while we are reverting files Signed-off-by: Sven Strickroth --- src/TortoiseProc/ProgressCommands/RevertProgressCommand.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/TortoiseProc/ProgressCommands/RevertProgressCommand.cpp b/src/TortoiseProc/ProgressCommands/RevertProgressCommand.cpp index 4f7222b1a..5d04298f1 100644 --- a/src/TortoiseProc/ProgressCommands/RevertProgressCommand.cpp +++ b/src/TortoiseProc/ProgressCommands/RevertProgressCommand.cpp @@ -1,6 +1,6 @@ // TortoiseGit - a Windows shell extension for easy version control -// Copyright (C) 2009-2014 - TortoiseGit +// Copyright (C) 2009-2014, 2016 - TortoiseGit // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -20,12 +20,15 @@ #include "RevertProgressCommand.h" #include "ShellUpdater.h" #include "AppUtils.h" +#include "../TGitCache/CacheInterface.h" bool RevertProgressCommand::Run(CGitProgressList* list, CString& sWindowTitle, int& m_itemCountTotal, int& m_itemCount) { list->SetWindowTitle(IDS_PROGRS_TITLE_REVERT, g_Git.CombinePath(m_targetPathList.GetCommonRoot().GetUIPathString()), sWindowTitle); list->SetBackgroundImage(IDI_REVERT_BKG); + CBlockCacheForPath block(g_Git.m_CurrentDir); + m_itemCountTotal = 2 * m_targetPathList.GetCount(); CTGitPathList delList; for (m_itemCount = 0; m_itemCount < m_targetPathList.GetCount(); ++m_itemCount) -- 2.11.4.GIT