From 0ee23c231367feb06d9e2bd4f6985eec15a33530 Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@theqtcompany.com>
Date: Tue, 4 Nov 2014 15:42:39 +0100
Subject: [PATCH] Subversion: Allow describing the initial commit

Change-Id: If99b9d2bdd2f21d605beb39e65a4188f1b45ffc5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
---
 src/plugins/subversion/subversionplugin.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/subversion/subversionplugin.cpp b/src/plugins/subversion/subversionplugin.cpp
index dc7ae4f7398..f920663053a 100644
--- a/src/plugins/subversion/subversionplugin.cpp
+++ b/src/plugins/subversion/subversionplugin.cpp
@@ -917,10 +917,10 @@ void SubversionPlugin::describe(const QString &source, const QString &changeNr)
         return;
     if (Subversion::Constants::debug)
         qDebug() << Q_FUNC_INFO << source << topLevel << changeNr;
-    // Number must be > 1
+    // Number must be >= 1
     bool ok;
     const int number = changeNr.toInt(&ok);
-    if (!ok || number < 2)
+    if (!ok || number < 1)
         return;
     // Run log to obtain message (local utf8)
     QString description;
@@ -970,7 +970,7 @@ void SubversionPlugin::slotDescribe()
     QInputDialog inputDialog(ICore::dialogParent());
     inputDialog.setWindowFlags(inputDialog.windowFlags() & ~Qt::WindowContextHelpButtonHint);
     inputDialog.setInputMode(QInputDialog::IntInput);
-    inputDialog.setIntRange(2, INT_MAX);
+    inputDialog.setIntRange(1, INT_MAX);
     inputDialog.setWindowTitle(tr("Describe"));
     inputDialog.setLabelText(tr("Revision number:"));
     if (inputDialog.exec() != QDialog::Accepted)
-- 
GitLab