Re: [PATCH] Porting/genlog -bi and range
authorAudrey Tang <cpan@audreyt.org>
Fri, 23 Nov 2001 23:55:53 +0000 (07:55 +0800)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 23 Nov 2001 15:05:02 +0000 (15:05 +0000)
Message-ID: <20011123235553.A2310@not.autrijus.org>

p4raw-id: //depot/perl@13199

Porting/genlog

index 627ba31..0c5fec6 100755 (executable)
@@ -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 <<EOT, $change, $who, $date, $time;
 [%6s] By: %-25s             on %9s %9s