[Python-checkins] r88866 - in tracker/instances/python-dev/extensions: local_replace.py test/local_replace_data.txt
ezio.melotti
python-checkins at python.org
Tue Jul 19 22:55:03 CEST 2011
Author: ezio.melotti
Date: Tue Jul 19 22:55:03 2011
New Revision: 88866
Log:
#407: tweak the regex for revisions to require at least 4 digits.
Modified:
tracker/instances/python-dev/extensions/local_replace.py
tracker/instances/python-dev/extensions/test/local_replace_data.txt
Modified: tracker/instances/python-dev/extensions/local_replace.py
==============================================================================
--- tracker/instances/python-dev/extensions/local_replace.py (original)
+++ tracker/instances/python-dev/extensions/local_replace.py Tue Jul 19 22:55:03 2011
@@ -80,7 +80,7 @@
r'<a href="http://hg.python.org/lookup/\g<revision>">\g<revision></a>'),
# r12345, r 12345, rev12345, rev 12345, revision12345, revision 12345
- (re.compile(r'\b(?<![/?&;])(?P<revstr>r(ev(ision)?)?\s*)(?P<revision>\d+)'),
+ (re.compile(r'\b(?<![/?&;])(?P<revstr>r(ev(ision)?)?\s*)(?P<revision>\d{4,})'),
r'<a href="http://hg.python.org/lookup/r\g<revision>">\g<revstr>\g<revision></a>'),
# Lib/somefile.py, Lib/somefile.py:123, Modules/somemodule.c:123, ...
Modified: tracker/instances/python-dev/extensions/test/local_replace_data.txt
==============================================================================
--- tracker/instances/python-dev/extensions/test/local_replace_data.txt (original)
+++ tracker/instances/python-dev/extensions/test/local_replace_data.txt Tue Jul 19 22:55:03 2011
@@ -2,22 +2,24 @@
## lines starting with '##' are ignored, but they have to be in an even number
##
## revisions - r12345, r 12345, rev12345, rev 12345, revision12345, revision 12345
-r222
-<a href="http://hg.python.org/lookup/r222">r222</a>
- r222
- <a href="http://hg.python.org/lookup/r222">r222</a>
- r 222
- <a href="http://hg.python.org/lookup/r222">r 222</a>
- rev222
- <a href="http://hg.python.org/lookup/r222">rev222</a>
- rev 222
- <a href="http://hg.python.org/lookup/r222">rev 222</a>
- revision222
- <a href="http://hg.python.org/lookup/r222">revision222</a>
- revision 222
- <a href="http://hg.python.org/lookup/r222">revision 222</a>
-wordthatendswithr 222
-wordthatendswithr 222
+r2222
+<a href="http://hg.python.org/lookup/r2222">r2222</a>
+ r2222
+ <a href="http://hg.python.org/lookup/r2222">r2222</a>
+ r 2222
+ <a href="http://hg.python.org/lookup/r2222">r 2222</a>
+ rev2222
+ <a href="http://hg.python.org/lookup/r2222">rev2222</a>
+ rev 2222
+ <a href="http://hg.python.org/lookup/r2222">rev 2222</a>
+ revision2222
+ <a href="http://hg.python.org/lookup/r2222">revision2222</a>
+ revision 2222
+ <a href="http://hg.python.org/lookup/r2222">revision 2222</a>
+wordthatendswithr 2222
+wordthatendswithr 2222
+I uploaded http://pypi.python.org/pypi/ctypesgen/0.r125
+I uploaded <a href="http://pypi.python.org/pypi/ctypesgen/0.r125">http://pypi.python.org/pypi/ctypesgen/0.r125</a>
##
## issues - the lowest issue id on bugs.python.org is #1000, the highest is #1779871
#1
More information about the Python-checkins
mailing list