From dev-return-39718-archive-asf-public=cust-asf.ponee.io@subversion.apache.org Wed Oct 30 02:11:35 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id A7B291804BB for ; Wed, 30 Oct 2019 03:11:35 +0100 (CET) Received: (qmail 86580 invoked by uid 500); 30 Oct 2019 02:11:34 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 86563 invoked by uid 99); 30 Oct 2019 02:11:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2019 02:11:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 914D8C0162 for ; Wed, 30 Oct 2019 02:11:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.149 X-Spam-Level: X-Spam-Status: No, score=0.149 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 1uDsJ66mA5rp for ; Wed, 30 Oct 2019 02:11:31 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.181; helo=mail-qk1-f181.google.com; envelope-from=vega.james@gmail.com; receiver= Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 9FA97BC711 for ; Wed, 30 Oct 2019 02:03:29 +0000 (UTC) Received: by mail-qk1-f181.google.com with SMTP id y81so1065284qkb.7 for ; Tue, 29 Oct 2019 19:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=X8pWbi3Y5MrQx31Apg3AkLLUD045ZKZcF3ikpSUygNw=; b=kBKHlXM+mLgZNCZFTzaIU80vGs4OHtJRVXWX0okQqQIcVlaSd8ppMajcLgebSg7gtA SJSbSNe1dCK5Ki+hoaXDVa2zODqSUWHD590LbM/K5lBq/vkEi7mQ9ZrzanJKpjbQ4rex ULnoIEXfQhPB+30g+babTESIGqeCZ3A5tRm8+XtzEYXj+7ZET1lUWP1YnsSolILZJG7Q EXsgPzYojJoeXMn6j4pGFsqIXaI1pgMNx6mKiHY1Zn6rqAV4a45NVHdtelBmzSJC5I61 MGoDvDdoBHxjvpScP2tS87GRwhtuxyy4YowrSq/UkSi9rUgnT73YZtIvzU8tn+vdtM+w evqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=X8pWbi3Y5MrQx31Apg3AkLLUD045ZKZcF3ikpSUygNw=; b=ZVPQkyN+O5XTl4mjZmqg8avTg6vTlfpp1jOLdu+iK6s7rUIcxMYdNowBdpcJ0RGl5+ DZu8fadqQ+GPx8N6f0Oz4YUIyoV19F2GNzX4roI43OHCJH+Zj5DhZo1WLEAC+uCMrWgp t/Dse+/Pdq7w2aTsZ/GiGnLqss8njWavmWZ1zhhbQOF57UJXidZydZo6WofJtYnyHJ0d XKDFy2AmRihhdehbFEFl4J0Cb7lzxFQGIeutkSH4JMFJihRPzRQec2vUzpEdHtrRX6Ki IfQoTELvzi6YQAjDT2R9zEkWAYIxPSfL/xKoPCvZkXyY9p13EEORHptCtnLg+pmjm0VS XsOQ== X-Gm-Message-State: APjAAAXULwun6xsPDv0Atd5P2IFkX41DPv/+Xe7giKx6GWAElbCMLwlI dcilFDPld2kWOkoy+4CLvi3V4jpz X-Google-Smtp-Source: APXvYqzYcyzOWxB2oaHBGceJxeDT1XFKS4XupFgl/kQxezR+Ac7zleUVr7L6ua+n9Ddvl2u+OD8z2A== X-Received: by 2002:a05:620a:a9c:: with SMTP id v28mr25214904qkg.381.1572401008612; Tue, 29 Oct 2019 19:03:28 -0700 (PDT) Received: from odin (pool-108-49-100-227.bstnma.fios.verizon.net. [108.49.100.227]) by smtp.gmail.com with ESMTPSA id 50sm415381qtv.88.2019.10.29.19.03.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 19:03:28 -0700 (PDT) Sender: James McCoy Received: from jamessan by odin with local (Exim 4.92.3) (envelope-from ) id 1iPdKZ-0002WR-F6 for dev@subversion.apache.org; Tue, 29 Oct 2019 22:03:27 -0400 Date: Tue, 29 Oct 2019 22:03:27 -0400 From: James McCoy To: dev@subversion.apache.org Subject: Re: svn commit: r1869134 - /subversion/trunk/tools/dist/release.py Message-ID: <20191030020327.j6vvwzyvyygq7stq@localhost> Mail-Followup-To: dev@subversion.apache.org References: <20191029232104.E95DC17A0FA@svn01-us-east.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191029232104.E95DC17A0FA@svn01-us-east.apache.org> User-Agent: NeoMutt/20180716 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