Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
33f1f130
Commit
33f1f130
authored
Oct 29, 2007
by
joerg@trift2
Browse files
Options
Browse Files
Download
Plain Diff
Merge trift2.:/MySQL/M41/mysql-4.1
into trift2.:/MySQL/M41/push-4.1
parents
29ea825e
91fd0781
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
BitKeeper/triggers/pre-commit.check-case.pl
BitKeeper/triggers/pre-commit.check-case.pl
+26
-0
No files found.
BitKeeper/triggers/pre-commit.check-case.pl
0 → 100755
View file @
33f1f130
#!/usr/bin/perl
my
$status
=
0
;
my
$pending
=
$ENV
{'
BK_PENDING
'};
exit
0
unless
-
f
$pending
;
open
FI
,
"
<
",
$pending
||
exit
0
;
while
(
<
FI
>
)
{
my
(
$file
,
$stuff
)
=
split
/\|/
,
$_
,
2
;
next
unless
-
f
$file
;
$file
=~
s/^(.*)\/([^\/]*)$/$2/
;
my
$path
=
$1
;
opendir
DIR
,
$path
;
my
@files
=
sort
map
{
lc
}
readdir
DIR
;
closedir
DIR
;
my
%
count
=
();
$count
{
$_
}
++
for
@files
;
@files
=
grep
{
$count
{
$_
}
>
1
}
keys
%
count
;
if
(
@files
>
0
)
{
print
"
$path
/
$file
: duplicate file names:
"
.
(
join
"
",
@files
)
.
"
\n
";
$status
=
1
;
}
}
close
FI
;
exit
$status
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment