Dachary has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/316697

Change subject: repository: s/Apache Subversion/Subversion/
......................................................................

repository: s/Apache Subversion/Subversion/

It was renamed 
https://www.wikidata.org/w/index.php?title=Q46794&type=revision&diff=387720392&oldid=384674412

Change-Id: Ia008e780014e379e17f8cdab5ef0a4d730768826
Signed-off-by: Loic Dachary <l...@dachary.org>
---
M FLOSSbot/plugin.py
M FLOSSbot/repository.py
M tests/test_repository.py
3 files changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/FLOSSbot 
refs/changes/97/316697/1

diff --git a/FLOSSbot/plugin.py b/FLOSSbot/plugin.py
index ec770fa..a4e04cf 100644
--- a/FLOSSbot/plugin.py
+++ b/FLOSSbot/plugin.py
@@ -103,6 +103,7 @@
         'wikidata': {
             'git': 'Q186055',
             'Fossil': 'Q1439431',
+            'Subversion': 'Q46794',
         },
         'test': {
         },
diff --git a/FLOSSbot/repository.py b/FLOSSbot/repository.py
index d8ef5a2..220d317 100644
--- a/FLOSSbot/repository.py
+++ b/FLOSSbot/repository.py
@@ -229,7 +229,7 @@
         if url.startswith('git://'):
             return self.Q_git
         if url.startswith('svn://'):
-            return self.Q_Apache_Subversion
+            return self.Q_Subversion
         if url.startswith('ftp://'):
             return self.Q_File_Transfer_Protocol
         return None
@@ -302,7 +302,7 @@
             return self.verify_fossil(url)
         elif protocol == self.Q_GNU_Bazaar:
             return self.verify_bzr(url)
-        elif protocol == self.Q_Apache_Subversion:
+        elif protocol == self.Q_Subversion:
             return self.verify_svn(url, credentials)
         elif (protocol == self.Q_Hypertext_Transfer_Protocol or
               protocol == self.Q_HTTPS):
@@ -317,7 +317,7 @@
         elif self.verify_hg(url):
             return self.Q_Mercurial
         elif self.verify_svn(url, credentials):
-            return self.Q_Apache_Subversion
+            return self.Q_Subversion
         elif self.verify_bzr(url):
             return self.Q_GNU_Bazaar
         elif self.verify_fossil(url):
diff --git a/tests/test_repository.py b/tests/test_repository.py
index bb703c6..246abac 100644
--- a/tests/test_repository.py
+++ b/tests/test_repository.py
@@ -81,7 +81,7 @@
     def test_guessproto__url_svn_schema(self):
         assert(
             self.r.guess_protocol_from_url('svn://example.org')
-            == self.r.Q_Apache_Subversion)
+            == self.r.Q_Subversion)
 
     def test_guessproto__url_ftp_schema(self):
         assert(

-- 
To view, visit https://gerrit.wikimedia.org/r/316697
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia008e780014e379e17f8cdab5ef0a4d730768826
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/FLOSSbot
Gerrit-Branch: master
Gerrit-Owner: Dachary <l...@dachary.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to