[GRASS-SVN] r74135 - grass-addons/tools/svn2git
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 26 01:30:26 PST 2019
Author: martinl
Date: 2019-02-26 01:30:25 -0800 (Tue, 26 Feb 2019)
New Revision: 74135
Modified:
grass-addons/tools/svn2git/rewrite.py
Log:
svn2git: disable trac ticket validation due to 'connection fail' errors
Modified: grass-addons/tools/svn2git/rewrite.py
===================================================================
--- grass-addons/tools/svn2git/rewrite.py 2019-02-25 23:09:40 UTC (rev 74134)
+++ grass-addons/tools/svn2git/rewrite.py 2019-02-26 09:30:25 UTC (rev 74135)
@@ -91,19 +91,19 @@
continue
# check if ticket really exists
- num = ''
- while True:
- if not(msg[newpos+1] >= '0' and msg[newpos+1] <= '9'):
- break
- num += msg[newpos+1]
- newpos += 1
+ # num = ''
+ # while True:
+ # if not(msg[newpos+1] >= '0' and msg[newpos+1] <= '9'):
+ # break
+ # num += msg[newpos+1]
+ # newpos += 1
- url = 'https://trac.osgeo.org/grass/ticket/' + num
- request = requests.get(url)
- if request.status_code != 200:
- # does not exist
- oldpos = newpos + len(msg[newpos+1:])
- continue
+ # url = 'https://trac.osgeo.org/grass/ticket/' + num
+ # request = requests.get(url)
+ # if request.status_code != 200:
+ # # does not exist
+ # oldpos = newpos + len(msg[newpos+1:])
+ # continue
msg = msg[0:newpos-len(num)] + url + msg[newpos+1:]
oldpos = newpos
More information about the grass-commit
mailing list