comparison mainwindow.cpp @ 137:a4044b4b3e35

* Include closed branches in heads check (see comment)
author Chris Cannam
date Tue, 30 Nov 2010 13:51:27 +0000
parents aaeab914f2a3
children e6c6b88d19b9
comparison
equal deleted inserted replaced
136:d66fcf2e0342 137:a4044b4b3e35
176 } 176 }
177 177
178 void MainWindow::hgQueryHeads() 178 void MainWindow::hgQueryHeads()
179 { 179 {
180 QStringList params; 180 QStringList params;
181 params << "heads"; 181 // On empty repos, "hg heads" will fail -- we don't care about
182 // on empty repos, "hg heads" will fail -- we don't care about that. 182 // that. Use --closed option so as to include closed branches;
183 // otherwise we'll be stuck if the user updates into one, and our
184 // incremental log will end up with spurious stuff in it because
185 // we won't be pruning at the ends of closed branches
186 params << "heads" << "--closed";
183 runner->requestAction(HgAction(ACT_QUERY_HEADS, workFolderPath, params)); 187 runner->requestAction(HgAction(ACT_QUERY_HEADS, workFolderPath, params));
184 } 188 }
185 189
186 void MainWindow::hgLog() 190 void MainWindow::hgLog()
187 { 191 {