# HG changeset patch # User Chris Cannam # Date 1291028692 0 # Node ID 6ce2ceb2c3a5e4f04e12ad9638109394a8796875 # Parent c92f5859c707d18f783860f7f951ea4c3ce1700f * Fix incremental log (was referring to "new" parents and so not actually returning anything) diff -r c92f5859c707 -r 6ce2ceb2c3a5 mainwindow.cpp --- a/mainwindow.cpp Mon Nov 29 11:01:19 2010 +0000 +++ b/mainwindow.cpp Mon Nov 29 11:04:52 2010 +0000 @@ -998,8 +998,6 @@ void MainWindow::updateFileSystemWatcher() { - //!!! this needs to be incremental when something changes - delete fsWatcher; fsWatcher = new QFileSystemWatcher(); std::deque pending; @@ -1229,20 +1227,27 @@ enableDisableActions(); - // Typical sequence goes paths -> branch -> stat -> heads -> parents -> log + // Sequence when no full log required: + // paths -> branch -> stat -> incremental-log -> heads -> parents + // Sequence when full log required: + // paths -> branch -> stat -> heads -> parents -> log if (action == ACT_QUERY_PATHS) { hgQueryBranch(); } else if (action == ACT_QUERY_BRANCH) { hgStat(); } else if (action == ACT_STAT) { + if (!needNewLog) { + hgLogIncremental(); + } else { + hgQueryHeads(); + } + } else if (action == ACT_LOG_INCREMENTAL) { hgQueryHeads(); } else if (action == ACT_QUERY_HEADS) { hgQueryParents(); } else if (action == ACT_QUERY_PARENTS) { if (needNewLog) { hgLog(); - } else { - hgLogIncremental(); } } else /* Move to commandFailed