From 18a48444ece348d4c9af91a8965806244d2dc430 Mon Sep 17 00:00:00 2001 From: Audrey Tang Date: Sat, 24 Nov 2001 07:55:53 +0800 Subject: [PATCH] Re: [PATCH] Porting/genlog -bi and range Message-ID: <20011123235553.A2310@not.autrijus.org> p4raw-id: //depot/perl@13199 --- Porting/genlog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 <