# HG changeset patch # User Chris Cannam # Date 1300369484 0 # Node ID 368b96a87c432bbc97e4e8525d5de9afd7c6f589 # Parent a52970e7a6e0180b0578fdf5be080a8c1d54bcb5 Add warning message when pushing with uncommitted changes. Fixes #102 diff -r a52970e7a6e0 -r 368b96a87c43 mainwindow.cpp --- a/mainwindow.cpp Thu Mar 17 12:53:34 2011 +0000 +++ b/mainwindow.cpp Thu Mar 17 13:44:44 2011 +0000 @@ -949,10 +949,15 @@ void MainWindow::hgPush() { + QString uncommittedNote; + if (m_hgTabs->canCommit()) { + uncommittedNote = tr("

Note: You have uncommitted changes. If you want to push these changes to the remote repository, you need to commit them first."); + } + if (ConfirmCommentDialog::confirm (this, tr("Confirm push"), tr("

Push to remote repository?

"), - tr("

You are about to push your changes to the remote repository at %1.

").arg(xmlEncode(m_remoteRepoPath)), + tr("

You are about to push your commits to the remote repository at %1.

%2
").arg(xmlEncode(m_remoteRepoPath)).arg(uncommittedNote), tr("Push"))) { QStringList params;