# HG changeset patch # User Jari Korhonen # Date 1276906251 -10800 # Node ID 5986d07580690db2bb8a06687c7543c74f0f05fd # Parent 7d8167182b73c648397100005e8bcad30a935718 Version 0.5.3. Fixed .hgignore editing in windows. diff -r 7d8167182b73 -r 5986d0758069 common.cpp --- a/common.cpp Sat Jun 19 02:01:54 2010 +0300 +++ b/common.cpp Sat Jun 19 03:10:51 2010 +0300 @@ -30,14 +30,6 @@ return QString("hg"); } -QString getDiffMergeDefaultPath() -{ - if (getSystem() == "Windows") - return QString("c:\\program files\\sourcegear\\diffmerge\\diffmerge.exe"); - else - return QString("/usr/bin/diffmerge"); -} - QString getHgDirName() { diff -r 7d8167182b73 -r 5986d0758069 common.h --- a/common.h Sat Jun 19 02:01:54 2010 +0300 +++ b/common.h Sat Jun 19 03:10:51 2010 +0300 @@ -8,7 +8,7 @@ #include #define APPNAME "HgExplorer" -#define APPVERSION "0.5.2" +#define APPVERSION "0.5.3" #define MY_ICON_SIZE 32 #define REPOMENU_TITLE "Repository actions" #define WORKFOLDERMENU_TITLE "Workfolder actions" @@ -35,7 +35,6 @@ extern QString getSystem(); extern QString getHgBinaryName(); -extern QString getDiffMergeDefaultPath(); extern QString getHgDirName(); #endif //COMMON_H diff -r 7d8167182b73 -r 5986d0758069 mainwindow.cpp --- a/mainwindow.cpp Sat Jun 19 02:01:54 2010 +0300 +++ b/mainwindow.cpp Sat Jun 19 03:10:51 2010 +0300 @@ -359,12 +359,25 @@ if (runningAction == ACT_NONE) { QString hgIgnorePath; + QStringList params; + QString editorName; - hgIgnorePath = "file:///"; - hgIgnorePath += workFolderPath; + hgIgnorePath = workFolderPath; hgIgnorePath += ".hgignore"; - QDesktopServices::openUrl(QUrl(hgIgnorePath, QUrl::TolerantMode)); + params << hgIgnorePath; + + if ((getSystem() == "Linux")) + { + editorName = "gedit"; + } + else + { + editorName = """C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe"""; + } + + runner -> startProc(editorName, workFolderPath, params); + runningAction = ACT_HG_IGNORE; } } @@ -942,6 +955,7 @@ case ACT_REVERT: case ACT_SERVE: case ACT_TAG: + case ACT_HG_IGNORE: shouldHgStat = true; break; diff -r 7d8167182b73 -r 5986d0758069 mainwindow.h --- a/mainwindow.h Sat Jun 19 02:01:54 2010 +0300 +++ b/mainwindow.h Sat Jun 19 03:10:51 2010 +0300 @@ -43,6 +43,7 @@ ACT_RESOLVE_MARK, ACT_RETRY_MERGE, ACT_TAG, + ACT_HG_IGNORE, };