Mercurial/Bazaar: Make commit work on windows

Do not keep an open file around when passing the file name to the
editor. The editor won't be able to save on windows since the file
is locked.

Task-number: QTCREATORBUG-5972
Change-Id: Ib424c76d2e3e57d43fdc1e1c222dbeb148669038
Reviewed-by: Hugues Delorme <delorme.hugues@fougsys.fr>
This commit is contained in:
Tobias Hunger
2012-09-26 15:18:44 +02:00
parent 74862df789
commit 917517cd37
4 changed files with 31 additions and 75 deletions

View File

@@ -39,7 +39,6 @@
QT_BEGIN_NAMESPACE
class QAction;
class QTemporaryFile;
QT_END_NAMESPACE
namespace Core {
@@ -132,7 +131,6 @@ private:
void createRepositoryActions(const Core::Context &context);
void createRepositoryManagementActions(const Core::Context &context);
void createLessUsedActions(const Core::Context &context);
void deleteCommitLog();
// Variables
static MercurialPlugin *m_instance;
@@ -145,7 +143,6 @@ private:
Core::ActionContainer *mercurialContainer;
QList<QAction *> m_repositoryActionList;
QTemporaryFile *changeLog;
// Menu items (file actions)
Utils::ParameterAction *m_addAction;
@@ -166,6 +163,8 @@ private:
QAction *m_menuAction;
QString m_submitRepository;
bool m_submitActionTriggered;
};
} // namespace Internal