subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1800222 - /subversion/trunk/tools/dist/release.py
Date Thu, 29 Jun 2017 02:47:23 GMT
Author: danielsh
Date: Thu Jun 29 02:47:23 2017
New Revision: 1800222

URL: http://svn.apache.org/viewvc?rev=1800222&view=rev
Log:
* tools/dist/release.py
  ('roll', 'create-tag'): Accept leading "r"'s in the revision number
    positional argv argument.

Modified:
    subversion/trunk/tools/dist/release.py

Modified: subversion/trunk/tools/dist/release.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/release.py?rev=1800222&r1=1800221&r2=1800222&view=diff
==============================================================================
--- subversion/trunk/tools/dist/release.py (original)
+++ subversion/trunk/tools/dist/release.py Thu Jun 29 02:47:23 2017
@@ -929,7 +929,7 @@ def main():
     subparser.set_defaults(func=roll_tarballs)
     subparser.add_argument('version', type=Version,
                     help='''The release label, such as '1.7.0-alpha1'.''')
-    subparser.add_argument('revnum', type=int,
+    subparser.add_argument('revnum', type=lambda arg: int(arg.lstrip('r')),
                     help='''The revision number to base the release on.''')
     subparser.add_argument('--branch',
                     help='''The branch to base the release on.''')
@@ -963,7 +963,7 @@ def main():
     subparser.set_defaults(func=create_tag)
     subparser.add_argument('version', type=Version,
                     help='''The release label, such as '1.7.0-alpha1'.''')
-    subparser.add_argument('revnum', type=int,
+    subparser.add_argument('revnum', type=lambda arg: int(arg.lstrip('r')),
                     help='''The revision number to base the release on.''')
     subparser.add_argument('--branch',
                     help='''The branch to base the release on.''')



Mime
View raw message