X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Porting%2Fgenlog;h=9926b37e7007edaacbf462bc4905db79cdf53553;hb=e40b81a3dd247b1a29fc78399677b77b78b5f183;hp=627ba316d40d15c9d658ca8f860b1d1792c9fc2b;hpb=51c9377f4b0083b39923d4de11fc61594a3e277a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/Porting/genlog b/Porting/genlog index 627ba31..9926b37 100755 --- a/Porting/genlog +++ b/Porting/genlog @@ -1,4 +1,4 @@ -#!/l/local/bin/perl -w +#!/usr/bin/perl -w # # Generate a nice changelist by querying perforce. # @@ -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, $_; @@ -69,6 +69,7 @@ if ($?) { die "$0: `p4 -p $p4port describe -s @changes` failed, status[$?]\n"; } else { + tr/\r/\n/ foreach @desc; chomp @desc; while (@desc) { my ($change,$who,$date,$time,@log,$branch,$file,$type,%files); @@ -105,7 +106,7 @@ else { } } } - next if not $change; + next if ((not $change) or $skip); print "_" x 76, "\n"; printf <