From: Audrey Tang Date: Fri, 23 Nov 2001 23:55:53 +0000 (+0800) Subject: Re: [PATCH] Porting/genlog -bi and range X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=18a48444ece348d4c9af91a8965806244d2dc430;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] Porting/genlog -bi and range Message-ID: <20011123235553.A2310@not.autrijus.org> p4raw-id: //depot/perl@13199 --- diff --git a/Porting/genlog b/Porting/genlog index 627ba31..0c5fec6 100755 --- a/Porting/genlog +++ b/Porting/genlog @@ -39,8 +39,8 @@ my %branch_exclude; while (@ARGV) { $_ = shift; - if (/^(\d+)\.\.(\d+)$/) { - push @changes, $1 .. $2; + if (/^(\d+)\.\.(\d+)?$/) { + push @changes, $1 .. ($2 || (split(' ', `p4 changes -m 1`))[1]); } elsif (/^\d+$/) { push @changes, $_; @@ -105,7 +105,7 @@ else { } } } - next if not $change; + next if ((not $change) or $skip); print "_" x 76, "\n"; printf <