# HG changeset patch # User Chris Cannam # Date 1291052923 0 # Node ID 758471b717211af53bf12e25c4373ed21d265f90 # Parent f41bbd0c7c2758a2101bed52cd96310fea5f4ddb * Don't provide file list when committing, if the user didn't select files. Previously we (perhaps inadvertantly) used a list of all files because we had generated that for display -- but it breaks merge-commits and it's probably unwise to mess with very long command lines. diff -r f41bbd0c7c27 -r 758471b71721 mainwindow.cpp --- a/mainwindow.cpp Mon Nov 29 17:11:29 2010 +0000 +++ b/mainwindow.cpp Mon Nov 29 17:48:43 2010 +0000 @@ -303,14 +303,15 @@ QString comment; QStringList files = hgTabs->getSelectedCommittableFiles(); - if (files.empty()) files = hgTabs->getAllCommittableFiles(); + QStringList reportFiles = files; + if (reportFiles.empty()) reportFiles = hgTabs->getAllCommittableFiles(); if (ConfirmCommentDialog::confirmAndGetLongComment (this, tr("Commit files"), tr("

Commit files

You are about to commit the following files:"), tr("

Commit files

You are about to commit %1 files."), - files, + reportFiles, comment)) { if ((justMerged == false) && //!!! review usage of justMerged, and how it interacts with asynchronous request queue @@ -513,7 +514,7 @@ if (ConfirmCommentDialog::confirmDangerousFilesAction (this, tr("Revert files"), - tr("

Revert files

You are about to revert the following files to their previous committed state.

This will throw away any changes that you have made to these files but have not committed."), + tr("

Revert files

You are about to revert the following files to their previous committed state.

This will throw away any changes that you have made to these files but have not committed:"), tr("

Revert files

You are about to revert %1 files.

This will throw away any changes that you have made to these files but have not committed."), files)) {