Mercurial > hg > easyhg
comparison settingsdialog.cpp @ 269:f6b71fda5957
* Rename the -osx.sh files to plain .sh, since we could use them elsewhere too. Rely on bundled kdiff3 if it exists.
author | Chris Cannam |
---|---|
date | Thu, 20 Jan 2011 13:37:00 +0000 |
parents | 8fd71f570884 |
children | 256138a4ed0e |
comparison
equal
deleted
inserted
replaced
268:b8ded5213d16 | 269:f6b71fda5957 |
---|---|
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_MAC | 264 bases << "easyhg-extdiff.sh"; |
265 bases << "easyhg-extdiff-osx.sh"; | |
266 #endif | |
267 bases << "kompare" << "kdiff3" << "meld"; | 265 bases << "kompare" << "kdiff3" << "meld"; |
268 bool found = false; | 266 bool found = false; |
269 foreach (QString base, bases) { | 267 foreach (QString base, bases) { |
270 diff = findInPath(base, m_installPath, true); | 268 diff = findInPath(base, m_installPath, true); |
271 if (diff != "") { | 269 if (diff != "") { |
287 if (settings.contains("mergebinary")) { | 285 if (settings.contains("mergebinary")) { |
288 return; | 286 return; |
289 } | 287 } |
290 QString merge; | 288 QString merge; |
291 QStringList bases; | 289 QStringList bases; |
292 #ifdef Q_OS_MAC | 290 bases << "easyhg-merge.sh"; |
293 bases << "easyhg-merge-osx.sh"; | 291 // NB it's not a good idea to add other tools here, as command |
294 #endif | 292 // line argument ordering varies. Configure them through hgrc |
295 // I think this is too dangerous, given command line ordering | 293 // instead |
296 // differences and suchlike. Need to make sure the hg | |
297 // installation is configured OK instead | |
298 // bases << "meld" << "diffuse" << "kdiff3"; | |
299 bool found = false; | 294 bool found = false; |
300 foreach (QString base, bases) { | 295 foreach (QString base, bases) { |
301 merge = findInPath(base, m_installPath, true); | 296 merge = findInPath(base, m_installPath, true); |
302 if (merge != "") { | 297 if (merge != "") { |
303 found = true; | 298 found = true; |