This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove Porting/genlog, redundant since the switch from Perforce to git.
authorNicholas Clark <nick@ccl4.org>
Fri, 2 Sep 2011 11:47:57 +0000 (13:47 +0200)
committerNicholas Clark <nick@ccl4.org>
Fri, 2 Sep 2011 11:47:57 +0000 (13:47 +0200)
"Generate a nice changelist by querying perforce" isn't much use these days.

MANIFEST
Porting/exec-bit.txt
Porting/genlog [deleted file]

index 6530441..45c327e 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -4544,7 +4544,6 @@ Porting/exec-bit.txt              List of files that get +x in release tarball
 Porting/exercise_makedef.pl    Brute force testing for makedef.pl
 Porting/expand-macro.pl                A tool to expand C macro definitions in the Perl source
 Porting/findrfuncs             Find reentrant variants of functions used in an executable
-Porting/genlog                 Generate formatted changelogs by querying p4d
 Porting/git-deltatool          Mark commits for perldelta in git notes
 Porting/git-find-p4-change     Find the change for a p4 change number
 Porting/git-make-p4-refs       Output git refs for each p4 change number, suitable for appending to .git/packed-refs
index 5d45917..73f6de8 100644 (file)
@@ -44,7 +44,6 @@ Porting/corelist.pl
 Porting/curliff.pl
 Porting/expand-macro.pl
 Porting/findrfuncs
-Porting/genlog
 Porting/makerel
 Porting/make_dot_patch.pl
 Porting/make_snapshot.pl
diff --git a/Porting/genlog b/Porting/genlog
deleted file mode 100755 (executable)
index 610e976..0000000
+++ /dev/null
@@ -1,144 +0,0 @@
-#!/usr/bin/perl -w
-#
-# Generate a nice changelist by querying perforce.
-#
-# Each change is described with the change number, description,
-# which branch the change happened in, files modified,
-# and who was responsible for entering the change.
-#
-# Can be called with a list of change numbers or a range of the
-# form "12..42".  Changelog will be printed from highest number
-# to lowest.
-#
-# Outputs the changelist to stdout.
-#
-# Gurusamy Sarathy <gsar@activestate.com>
-#
-
-use Text::Wrap;
-use Text::Tabs;
-
-$0 =~ s|^.*/||;
-unless (@ARGV) {
-    die <<USAGE;
-        $0 [-p \$P4PORT] [-bi branch_include] [-be branch_exclude] <change numbers or from..to>
-USAGE
-}
-
-my @changes;
-
-my %editkind;
-@editkind{ qw(   add      edit    delete integrate   branch )}
-         = qw(     +         !         -        !>       +> );
-
-my $p4port = $ENV{P4PORT} || 'localhost:1666';
-
-my @branch_include;
-my @branch_exclude;
-my %branch_include;
-my %branch_exclude;
-
-while (@ARGV) {
-    $_ = shift;
-    if (/^(\d+)\.\.(\d+)?$/) {
-        push @changes, $1 .. ($2 || (split(' ', `p4 changes -m 1`))[1]);
-    }
-    elsif (/^\d+$/) {
-        push @changes, $_;
-    }
-    elsif (/^-p(.*)$/) {
-        $p4port = $1 || shift;
-    }
-    elsif (/^-bi(.*)$/) {
-        push @branch_include, $1 || shift;
-    }
-    elsif (/^-be(.*)$/) {
-        push @branch_exclude, $1 || shift;
-    }
-    else {
-        warn "Arguments must be change numbers, ignoring `$_'\n";
-    }
-}
-
-@changes = sort { $b <=> $a } @changes;
-
-@branch_include{@branch_include} = @branch_include if @branch_include;
-@branch_exclude{@branch_exclude} = @branch_exclude if @branch_exclude;
-
-my @desc = `p4 -p $p4port describe -s @changes`;
-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);
-       my $skip = 0;
-        my $nbranch = 0;
-       $_ = shift @desc;
-       if (/^Change (\d+) by (\w+)\@.+ on (\S+) (\S+)\s*$/) {
-           ($change, $who, $date, $time) = ($1,$2,$3,$4);
-           $_ = shift @desc;  # get rid of empty line
-           while (@desc) {
-               $_ = shift @desc;
-               last if /^Affected/;
-               push @log, $_;    
-           }
-           if (/^Affected/) {
-               $_ = shift @desc;  # get rid of empty line
-               while ($_ = shift @desc) {
-                   last unless /^\.\.\./;
-                   if (m{^\.\.\. //depot/(.*?perl|[^/]*)/([^#]+)#\d+ (\w+)\s*$}) {
-                       ($branch,$file,$type) = ($1,$2,$3);
-                       $nbranch++;
-                       if (exists $branch_exclude{$branch} or
-                           @branch_include and
-                           not exists $branch_include{$branch}) {
-                           $skip++;
-                       }
-                       $files{$branch} = {} unless exists $files{$branch};
-                       $files{$branch}{$type} = [] unless exists $files{$branch}{$type};
-                       push @{$files{$branch}{$type}}, $file;
-                   }
-                   else {
-                       warn "Unknown line [$_], ignoring\n";
-                   }
-               }
-           }
-       }
-       next if ((not $change) or $skip);
-       my $output = ("_" x 76) . "\n";
-       $output .= sprintf <<EOT, $change, $who, $date, $time;
-[%6s] By: %-25s             on %9s %9s
-EOT
-       $output .= "        Log: ";
-       my $i = 0;
-       while (@log) {
-           $_ = shift @log;
-           s/^\s*//;
-           s/^\[.*\]\s*// unless $i ;
-            # don't print last empty line
-           if ($_ or @log) {
-               $output .= "             " if $i++;
-               $output .= "$_\n";
-           }
-       }
-       for my $branch (sort keys %files) {
-           $output .= sprintf "%11s: $branch\n", 'Branch';
-           for my $kind (sort keys %{$files{$branch}}) {
-               warn("### $kind ###\n"), next unless exists $editkind{$kind};
-               my $files = $files{$branch}{$kind};
-               # don't show large branches and integrations
-               $files = ["($kind " . scalar(@$files) . ' files)']
-                   if (@$files > 25 && ($kind eq 'integrate'
-                                        || $kind eq 'branch'))
-                      || @$files > 100;
-               $output .= wrap(sprintf("%12s ", $editkind{$kind}),
-                               sprintf("%12s ", $editkind{$kind}),
-                               "@$files\n");
-            }
-       }
-       print unexpand($output);
-    }
-}