summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-01-08 15:24:53 +0000
committerNicholas Clark <nick@ccl4.org>2006-01-08 15:24:53 +0000
commitd933dc9eee7771e117a050289ed31b0286699d55 (patch)
tree262938b0b6e9a3d66501fc18571148abb9dd314f
parent81f61c1a1801c3f63576c7bdd2b7e2b2f91cd51d (diff)
downloadperl-d933dc9eee7771e117a050289ed31b0286699d55.tar.gz
Add an option 'opened' which reports on the maintainers of all files
perforce currently has open. p4raw-id: //depot/perl@26713
-rw-r--r--Porting/Maintainers.pm13
1 files changed, 12 insertions, 1 deletions
diff --git a/Porting/Maintainers.pm b/Porting/Maintainers.pm
index b8959e820a..f71db98771 100644
--- a/Porting/Maintainers.pm
+++ b/Porting/Maintainers.pm
@@ -72,6 +72,7 @@ $0: Usage: $0 [[--maintainer M --module M --files --check]|file ...]
--module M list all modules matching M
--files list all files
--check check consistency of Maintainers.pl
+--opened list all modules of files opened by perforce
Matching is case-ignoring regexp, author matching is both by
the short id and by the full name and email. A "module" may
not be just a module, it may be a file or files or a subdirectory.
@@ -84,6 +85,7 @@ my $Maintainer;
my $Module;
my $Files;
my $Check;
+my $Opened;
sub process_options {
usage()
@@ -93,9 +95,18 @@ sub process_options {
'module=s' => \$Module,
'files' => \$Files,
'check' => \$Check,
+ 'opened' => \$Opened,
);
- my @Files = @ARGV;
+ my @Files;
+
+ if ($Opened) {
+ my @raw = `p4 opened`;
+ die if $?;
+ @Files = map {s!#.*!!s; s!^//depot/.*?/perl/!!; $_} @raw;
+ } else {
+ @Files = @ARGV;
+ }
usage() if @Files && ($Maintainer || $Module || $Files);