Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P496
ports/no-phabricator
Archived
Public
Actions
Authored by
mat
on Apr 16 2021, 12:38 PM.
Edit Paste
Activate Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F20186862: ports/no-phabricator
Apr 16 2021, 12:38 PM
2021-04-16 12:38:10 (UTC+0)
Subscribers
None
#!/usr/bin/perl
# vim:sts=4 sw=4
use
strict
;
use
warnings
;
use
5.024
;
for
(
<STDIN>
)
{
chomp
;
my
(
$old
,
$new
,
$ref
)
=
split
/ /
;
for
my
$rev
(
qx{git log --format="%H" $new --not --all}
)
{
chomp
$rev
;
my
$log
=
join
''
,
qx{git show -s --format=%B $rev}
;
# Prevent commit messages formatted by phabricator to get in.
if
(
$log
=~
m
|\
n
\
nReviewers:
[
\
t
]
+|
oms
)
{
die
"\n================================================================\n"
.
"Non-standard/badly formatted template - found 'Reviewers:' instead of 'Reviewed by:'.\n"
.
"================================================================\n"
}
if
(
$log
=~
m
|\
n
\
nSubscribers:
[
\
t
]
+|
oms
)
{
die
"\n================================================================\n"
.
"Non-standard/badly formatted template - found 'Subscribers:'.\n"
.
"================================================================\n"
}
}
}
exit
0
;
Event Timeline
mat
created this paste.
Apr 16 2021, 12:38 PM
2021-04-16 12:38:10 (UTC+0)
mat
created this object in space
S1 Global
.
mat
archived this paste.
Apr 16 2021, 3:57 PM
2021-04-16 15:57:36 (UTC+0)
Log In to Comment