Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F20186862
ports/no-phabricator
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
mat
Apr 16 2021, 12:38 PM
2021-04-16 12:38:10 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
ports/no-phabricator
View Options
#!/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
;
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3600997
Default Alt Text
ports/no-phabricator (1 KB)
Attached To
Mode
P496 ports/no-phabricator
Attached
Detach File
Event Timeline
Log In to Comment