summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
392c009)
output to a file rather than garble the output of 10-15 process in
stdout.
#include <QDebug>
Repository::Repository(const Rules::Repository &rule)
#include <QDebug>
Repository::Repository(const Rules::Repository &rule)
+ : name(rule.name), processHasStarted(false)
{
foreach (Rules::Repository::Branch branchRule, rule.branches) {
Branch branch;
{
foreach (Rules::Repository::Branch branchRule, rule.branches) {
Branch branch;
void Repository::startFastImport()
{
if (fastImport.state() == QProcess::NotRunning) {
void Repository::startFastImport()
{
if (fastImport.state() == QProcess::NotRunning) {
+ if (processHasStarted)
+ qFatal("git-fast-import has been started once and crashed?");
+ processHasStarted = true;
+
+ QString outputFile = name;
+ outputFile.replace('/', '_');
+ outputFile.prepend("log-");
+ fastImport.setStandardOutputFile(outputFile, QIODevice::Append);
+
#ifndef DRY_RUN
fastImport.setProcessChannelMode(QProcess::ForwardedChannels);
fastImport.start("git-fast-import", QStringList());
#else
#ifndef DRY_RUN
fastImport.setProcessChannelMode(QProcess::ForwardedChannels);
fastImport.start("git-fast-import", QStringList());
#else
- QString outputFile = name;
- outputFile.replace('/', '_');
- fastImport.setStandardOutputFile(outputFile, QIODevice::Append);
fastImport.start("/bin/cat", QStringList());
#endif
}
fastImport.start("/bin/cat", QStringList());
#endif
}