[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1869134 - /subversion/trunk/tools/dist/release.py

From: James McCoy <jamessan_at_jamessan.com>
Date: Tue, 29 Oct 2019 22:03:27 -0400

On Tue, Oct 29, 2019 at 11:21:04PM -0000, danielsh_at_apache.org wrote:
> Author: danielsh
> Date: Tue Oct 29 23:21:04 2019
> New Revision: 1869134
>
> URL: http://svn.apache.org/viewvc?rev=1869134&view=rev
> Log:
> * tools/dist/release.py
> (write_news): Validate the argument to the --news-release-date option.
> Follow-up to r1869118.
>
> 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=1869134&r1=1869133&r2=1869134&view=diff
> ==============================================================================
> --- subversion/trunk/tools/dist/release.py (original)
> +++ subversion/trunk/tools/dist/release.py Tue Oct 29 23:21:04 2019
> @@ -1188,9 +1188,13 @@ def move_to_dist(args):
>
> def write_news(args):
> 'Write text for the Subversion website.'
> - release_date = args.news_release_date or datetime.date.today().strftime('%Y-%m-%d')
> - data = { 'date' : re.sub("-", "", release_date), # format YYYYmmdd
> - 'date_pres' : release_date, # format YYYY-mm-dd
> + if args.news_release_date:
> + release_date = datetime.datetime.strptime(args.news_release_date, '%Y-%m-%d')
> + else:
> + release_date = datetime.date.today()
> + abort
       --^
Left over debug code?

Cheers,

-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB
Received on 2019-10-30 03:11:35 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.