Mercurial > hg > easyhg
comparison debug.cpp @ 172:b6dd1ee0e486
* Fix failure to recognise local uncommitted changes when an untracked file was selected
* Win32: Look in installed location (currently just the location of the present .exe) for executables as well as in path
* Win32: Search for easyhg extension in same way as executables
* Win32: Set installed location to path when running hg commands (for dependent DLLs)
author | Chris Cannam |
---|---|
date | Wed, 15 Dec 2010 22:07:31 +0000 |
parents | 94be1e218655 |
children | 8fd71f570884 |
comparison
equal
deleted
inserted
replaced
171:aab308a3b304 | 172:b6dd1ee0e486 |
---|---|
38 mutex.lock(); | 38 mutex.lock(); |
39 if (!debug) { | 39 if (!debug) { |
40 prefix = new char[20]; | 40 prefix = new char[20]; |
41 sprintf(prefix, "[%lu]", (unsigned long)QCoreApplication::applicationPid()); | 41 sprintf(prefix, "[%lu]", (unsigned long)QCoreApplication::applicationPid()); |
42 logFile = new QFile(QDir::homePath() + "/.easyhg.log"); | 42 logFile = new QFile(QDir::homePath() + "/.easyhg.log"); |
43 if (logFile->open(QIODevice::WriteOnly)) { | 43 if (logFile->open(QIODevice::WriteOnly | QIODevice::Truncate)) { |
44 QDebug(QtDebugMsg) << (const char *)prefix | 44 QDebug(QtDebugMsg) << (const char *)prefix |
45 << "Opened debug log file " | 45 << "Opened debug log file " |
46 << logFile->fileName(); | 46 << logFile->fileName(); |
47 debug = new QDebug(logFile); | 47 debug = new QDebug(logFile); |
48 } else { | 48 } else { |