[GRASS-SVN] r74139 - grass-addons/tools/svn2git
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 28 03:54:47 PST 2019
Author: martinl
Date: 2019-02-28 03:54:47 -0800 (Thu, 28 Feb 2019)
New Revision: 74139
Modified:
grass-addons/tools/svn2git/rewrite.py
Log:
svn2git: fix r74135
Modified: grass-addons/tools/svn2git/rewrite.py
===================================================================
--- grass-addons/tools/svn2git/rewrite.py 2019-02-28 09:20:10 UTC (rev 74138)
+++ grass-addons/tools/svn2git/rewrite.py 2019-02-28 11:54:47 UTC (rev 74139)
@@ -90,14 +90,14 @@
oldpos = newpos + 1
continue
+ num = ''
+ while True:
+ if not(msg[newpos+1] >= '0' and msg[newpos+1] <= '9'):
+ break
+ num += msg[newpos+1]
+ newpos += 1
+
# 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
-
# url = 'https://trac.osgeo.org/grass/ticket/' + num
# request = requests.get(url)
# if request.status_code != 200:
More information about the grass-commit
mailing list