Xqt has uploaded a new change for review.

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


Change subject: (Bug 56531): Ignore Version ID for SVN repository
......................................................................

(Bug 56531): Ignore Version ID for SVN repository

SVN repository does not replace ID keyword and searching for
the keyword ID does raise an exception.
Thus we ignore that part of code.

Maybe we could get this information from version.py but because
that code does not work properly yet, this could be a second
part.

Change-Id: Icd7384908ebc6409aee17c435f659681bd530f71
---
M pywikibot/bot.py
1 file changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/13/93313/1

diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index ca06ce0..546af0e 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -630,7 +630,12 @@
         # or `$Id$`.
         m = re.search(r"\$Id"
                       r": (\w+) \$", ver)
-        pywikibot.output(u'Pywikipediabot r%s' % m.group(1))
+        if m:
+            pywikibot.output(u'Pywikipediabot r%s' % m.group(1))
+        else:
+            # Version ID not availlable on SVN repository.
+            # Maybe these informations should be imported from version.py
+            pywikibot.output(u'Pywikipediabot SVN repository')                 
         pywikibot.output(u'Python %s' % sys.version)
 
     if do_help:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd7384908ebc6409aee17c435f659681bd530f71
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to