subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James McCoy <james...@jamessan.com>
Subject Re: svn commit: r1869134 - /subversion/trunk/tools/dist/release.py
Date Wed, 30 Oct 2019 02:03:27 GMT
On Tue, Oct 29, 2019 at 11:21:04PM -0000, danielsh@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

Mime
View raw message