VCS polishing: Change context menu entry for 'Blame parent'.

... for git, hg as it is not obvious from the SHA1 displayed.
This commit is contained in:
Friedemann Kleint
2010-08-13 09:12:27 +02:00
parent 4c29c61a75
commit 42b39023db
5 changed files with 28 additions and 7 deletions

View File

@@ -164,9 +164,9 @@ QSharedPointer<VCSBase::AbstractCheckoutJob> CloneWizardPage::createCheckoutJob(
QStringList CloneWizardPage::branches(const QString &repository, int *current)
{
// Run git on remote repository if URL is complete
// Run git on remote repository if an URL was specified.
*current = 0;
if (!repository.endsWith(d->gitPostFix))
if (repository.isEmpty())
return QStringList();
const QStringList branches = Internal::GitPlugin::instance()->gitClient()->synchronousRepositoryBranches(repository);
*current = branches.indexOf(QLatin1String("master"));

View File

@@ -66,6 +66,7 @@ GitEditor::GitEditor(const VCSBase::VCSBaseEditorParameters *type,
QTC_ASSERT(m_changeNumberPattern8.isValid(), return);
QTC_ASSERT(m_changeNumberPattern40.isValid(), return);
setAnnotateRevisionTextFormat(tr("Blame %1"));
setAnnotatePreviousRevisionTextFormat(tr("Blame parent revision %1"));
if (Git::Constants::debug)
qDebug() << "GitEditor::GitEditor" << type->type << type->id;
}