Mercurial > hg > easyhg
comparison settingsdialog.cpp @ 272:256138a4ed0e
* Add easyhg-merge.bat and use it. (This isn't necessary if hg has been properly configured, as the Tortoise distribution has)
author | Chris Cannam |
---|---|
date | Tue, 25 Jan 2011 16:12:23 +0000 |
parents | f6b71fda5957 |
children | cc95394e2392 |
comparison
equal
deleted
inserted
replaced
271:d98c642fc66f | 272:256138a4ed0e |
---|---|
259 QSettings settings; | 259 QSettings settings; |
260 settings.beginGroup("Locations"); | 260 settings.beginGroup("Locations"); |
261 QString diff = settings.value("extdiffbinary", "").toString(); | 261 QString diff = settings.value("extdiffbinary", "").toString(); |
262 if (diff == "") { | 262 if (diff == "") { |
263 QStringList bases; | 263 QStringList bases; |
264 #ifdef Q_OS_WIN32 | |
265 bases << "easyhg-extdiff.bat"; | |
266 #else | |
264 bases << "easyhg-extdiff.sh"; | 267 bases << "easyhg-extdiff.sh"; |
268 #endif | |
265 bases << "kompare" << "kdiff3" << "meld"; | 269 bases << "kompare" << "kdiff3" << "meld"; |
266 bool found = false; | 270 bool found = false; |
267 foreach (QString base, bases) { | 271 foreach (QString base, bases) { |
268 diff = findInPath(base, m_installPath, true); | 272 diff = findInPath(base, m_installPath, true); |
269 if (diff != "") { | 273 if (diff != "") { |
285 if (settings.contains("mergebinary")) { | 289 if (settings.contains("mergebinary")) { |
286 return; | 290 return; |
287 } | 291 } |
288 QString merge; | 292 QString merge; |
289 QStringList bases; | 293 QStringList bases; |
294 #ifdef Q_OS_WIN32 | |
295 bases << "easyhg-merge.bat"; | |
296 #else | |
290 bases << "easyhg-merge.sh"; | 297 bases << "easyhg-merge.sh"; |
298 #endif | |
291 // NB it's not a good idea to add other tools here, as command | 299 // NB it's not a good idea to add other tools here, as command |
292 // line argument ordering varies. Configure them through hgrc | 300 // line argument ordering varies. Configure them through hgrc |
293 // instead | 301 // instead |
294 bool found = false; | 302 bool found = false; |
295 foreach (QString base, bases) { | 303 foreach (QString base, bases) { |