also repeat the list at the end.
p4raw-id: //depot/perl@6504
warn "$newfile add, revision != 1!\n" unless $newfile =~ /#1$/;
}
} else {
- $_ = "# Skipped: $_";
+ push @skipped, "# $_";
+ $_ = '';
}
}
warn "file [$file] line [$cur] file# [$fnum]\n" if $v;
if (m|^==== //depot/|) {
$skip = !m|$branches|;
+ print "# Skipped because not under branches: $branches\n" if $skip;
}
$_ = "# $_" if $skip;
if (eof) {
$_ .= newfiles();
+ $_ .= join('', "\n",
+ "# Skipped because not under branches: $branches\n",
+ @skipped, "\n") if @skipped;
}
sub newfiles {