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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3d265e97
Commit
3d265e97
authored
Feb 10, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit trigger
parents
8b9679de
b3d2e434
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
19 deletions
+26
-19
BitKeeper/triggers/post-commit
BitKeeper/triggers/post-commit
+13
-6
extra/replace.c
extra/replace.c
+13
-13
No files found.
BitKeeper/triggers/post-commit
View file @
3d265e97
...
@@ -20,14 +20,20 @@ if [ "$BK_STATUS" = OK ]
...
@@ -20,14 +20,20 @@ if [ "$BK_STATUS" = OK ]
then
then
CHANGESET
=
`
bk
-R
prs
-r
+
-h
-d
':P:::I:'
ChangeSet
`
CHANGESET
=
`
bk
-R
prs
-r
+
-h
-d
':P:::I:'
ChangeSet
`
BUG
=
`
bk
-R
prs
-r
+
-h
-d
':C:'
ChangeSet |
sed
-ne
's/^.*[Bb][Uu][Gg] *# *\([0-9][0-9]*\).*$/
BUG#
\1/p'
`
BUG
=
`
bk
-R
prs
-r
+
-h
-d
':C:'
ChangeSet |
sed
-ne
's/^.*[Bb][Uu][Gg] *# *\([0-9][0-9]*\).*$/\1/p'
`
WL
=
`
bk
-R
prs
-r
+
-h
-d
':C:'
ChangeSet |
sed
-ne
's/^.*[Ww][Ll] *# *\([0-9][0-9]*\).*$/ WL#\1/p'
`
WL
=
`
bk
-R
prs
-r
+
-h
-d
':C:'
ChangeSet |
sed
-ne
's/^.*[Ww][Ll] *# *\([0-9][0-9]*\).*$/ WL#\1/p'
`
if
[
"
$BUG
"
=
""
]
if
[
"
$BUG
"
=
""
]
then
then
TO
=
dev-public@mysql.com
TO
=
dev-public@mysql.com
BS
=
""
BH
=
""
else
else
TO
=
dev-bugs@mysql.com
TO
=
dev-bugs@mysql.com
BS
=
" BUG#
$BUG
"
# need newline here
BH
=
"X-Bug:
$BUG
"
fi
fi
#++
#++
# dev-public@ / dev-bugs@
# dev-public@ / dev-bugs@
...
@@ -38,8 +44,8 @@ fi
...
@@ -38,8 +44,8 @@ fi
List-ID: <bk.mysql-
$VERSION
>
List-ID: <bk.mysql-
$VERSION
>
From:
$FROM
From:
$FROM
To:
$TO
To:
$TO
Subject: bk commit -
$VERSION
tree (
$CHANGESET
)
${
B
UG
}${
WL
}
Subject: bk commit -
$VERSION
tree (
$CHANGESET
)
${
B
S
}${
WL
}
$BH
EOF
EOF
bk changes
-v
-r
+
bk changes
-v
-r
+
bk cset
-r
+
-d
bk cset
-r
+
-d
...
@@ -54,14 +60,15 @@ EOF
...
@@ -54,14 +60,15 @@ EOF
List-ID: <bk.mysql-
$VERSION
>
List-ID: <bk.mysql-
$VERSION
>
From:
$FROM
From:
$FROM
To:
$INTERNALS
To:
$INTERNALS
Subject: bk commit into
$VERSION
tree (
$CHANGESET
)
Subject: bk commit into
$VERSION
tree (
$CHANGESET
)
$BS
$BH
Below is the list of changes that have just been committed into a local
Below is the list of changes that have just been committed into a local
$VERSION
repository of
$USER
. When
$USER
does a push these changes will
$VERSION
repository of
$USER
. When
$USER
does a push these changes will
be propagated to the main repository and, within 24 hours after the
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
push, to the public repository.
For information on how to access the public repository
For information on how to access the public repository
see http://
www.mysql.com/doc/I/n/Installing_source_
tree.html
see http://
dev.mysql.com/doc/mysql/en/installing-source-
tree.html
EOF
EOF
bk changes
-v
-r
+
bk changes
-v
-r
+
...
@@ -81,7 +88,7 @@ EOF
...
@@ -81,7 +88,7 @@ EOF
List-ID: <bk.mysql-
$VERSION
>
List-ID: <bk.mysql-
$VERSION
>
From:
$FROM
From:
$FROM
To:
$DOCS
To:
$DOCS
Subject: bk commit -
$VERSION
tree (Manual) (
$CHANGESET
)
Subject: bk commit -
$VERSION
tree (Manual) (
$CHANGESET
)
$BS
EOF
EOF
bk changes
-v
-r
+
bk changes
-v
-r
+
...
...
extra/replace.c
View file @
3d265e97
...
@@ -376,8 +376,8 @@ static REP_SET *make_new_set(REP_SETS *sets);
...
@@ -376,8 +376,8 @@ static REP_SET *make_new_set(REP_SETS *sets);
static
void
make_sets_invisible
(
REP_SETS
*
sets
);
static
void
make_sets_invisible
(
REP_SETS
*
sets
);
static
void
free_last_set
(
REP_SETS
*
sets
);
static
void
free_last_set
(
REP_SETS
*
sets
);
static
void
free_sets
(
REP_SETS
*
sets
);
static
void
free_sets
(
REP_SETS
*
sets
);
static
void
set_bit
(
REP_SET
*
set
,
uint
bit
);
static
void
internal_
set_bit
(
REP_SET
*
set
,
uint
bit
);
static
void
clear_bit
(
REP_SET
*
set
,
uint
bit
);
static
void
internal_
clear_bit
(
REP_SET
*
set
,
uint
bit
);
static
void
or_bits
(
REP_SET
*
to
,
REP_SET
*
from
);
static
void
or_bits
(
REP_SET
*
to
,
REP_SET
*
from
);
static
void
copy_bits
(
REP_SET
*
to
,
REP_SET
*
from
);
static
void
copy_bits
(
REP_SET
*
to
,
REP_SET
*
from
);
static
int
cmp_bits
(
REP_SET
*
set1
,
REP_SET
*
set2
);
static
int
cmp_bits
(
REP_SET
*
set1
,
REP_SET
*
set2
);
...
@@ -454,7 +454,7 @@ REPLACE *init_replace(my_string *from, my_string *to,uint count,
...
@@ -454,7 +454,7 @@ REPLACE *init_replace(my_string *from, my_string *to,uint count,
{
{
if
(
from
[
i
][
0
]
==
'\\'
&&
from
[
i
][
1
]
==
'^'
)
if
(
from
[
i
][
0
]
==
'\\'
&&
from
[
i
][
1
]
==
'^'
)
{
{
set_bit
(
start_states
,
states
+
1
);
internal_
set_bit
(
start_states
,
states
+
1
);
if
(
!
from
[
i
][
2
])
if
(
!
from
[
i
][
2
])
{
{
start_states
->
table_offset
=
i
;
start_states
->
table_offset
=
i
;
...
@@ -463,8 +463,8 @@ REPLACE *init_replace(my_string *from, my_string *to,uint count,
...
@@ -463,8 +463,8 @@ REPLACE *init_replace(my_string *from, my_string *to,uint count,
}
}
else
if
(
from
[
i
][
0
]
==
'\\'
&&
from
[
i
][
1
]
==
'$'
)
else
if
(
from
[
i
][
0
]
==
'\\'
&&
from
[
i
][
1
]
==
'$'
)
{
{
set_bit
(
start_states
,
states
);
internal_
set_bit
(
start_states
,
states
);
set_bit
(
word_states
,
states
);
internal_
set_bit
(
word_states
,
states
);
if
(
!
from
[
i
][
2
]
&&
start_states
->
table_offset
==
(
uint
)
~
0
)
if
(
!
from
[
i
][
2
]
&&
start_states
->
table_offset
==
(
uint
)
~
0
)
{
{
start_states
->
table_offset
=
i
;
start_states
->
table_offset
=
i
;
...
@@ -473,11 +473,11 @@ REPLACE *init_replace(my_string *from, my_string *to,uint count,
...
@@ -473,11 +473,11 @@ REPLACE *init_replace(my_string *from, my_string *to,uint count,
}
}
else
else
{
{
set_bit
(
word_states
,
states
);
internal_
set_bit
(
word_states
,
states
);
if
(
from
[
i
][
0
]
==
'\\'
&&
(
from
[
i
][
1
]
==
'b'
&&
from
[
i
][
2
]))
if
(
from
[
i
][
0
]
==
'\\'
&&
(
from
[
i
][
1
]
==
'b'
&&
from
[
i
][
2
]))
set_bit
(
start_states
,
states
+
1
);
internal_
set_bit
(
start_states
,
states
+
1
);
else
else
set_bit
(
start_states
,
states
);
internal_
set_bit
(
start_states
,
states
);
}
}
for
(
pos
=
from
[
i
],
len
=
0
;
*
pos
;
pos
++
)
for
(
pos
=
from
[
i
],
len
=
0
;
*
pos
;
pos
++
)
{
{
...
@@ -583,9 +583,9 @@ REPLACE *init_replace(my_string *from, my_string *to,uint count,
...
@@ -583,9 +583,9 @@ REPLACE *init_replace(my_string *from, my_string *to,uint count,
follow
[
i
].
len
>
found_end
)
follow
[
i
].
len
>
found_end
)
found_end
=
follow
[
i
].
len
;
found_end
=
follow
[
i
].
len
;
if
(
chr
&&
follow
[
i
].
chr
)
if
(
chr
&&
follow
[
i
].
chr
)
set_bit
(
new_set
,
i
+
1
);
/* To next set */
internal_
set_bit
(
new_set
,
i
+
1
);
/* To next set */
else
else
set_bit
(
new_set
,
i
);
internal_
set_bit
(
new_set
,
i
);
}
}
}
}
if
(
found_end
)
if
(
found_end
)
...
@@ -602,7 +602,7 @@ REPLACE *init_replace(my_string *from, my_string *to,uint count,
...
@@ -602,7 +602,7 @@ REPLACE *init_replace(my_string *from, my_string *to,uint count,
if
(
follow
[
bit_nr
-
1
].
len
<
found_end
||
if
(
follow
[
bit_nr
-
1
].
len
<
found_end
||
(
new_set
->
found_len
&&
(
new_set
->
found_len
&&
(
chr
==
0
||
!
follow
[
bit_nr
].
chr
)))
(
chr
==
0
||
!
follow
[
bit_nr
].
chr
)))
clear_bit
(
new_set
,
i
);
internal_
clear_bit
(
new_set
,
i
);
else
else
{
{
if
(
chr
==
0
||
!
follow
[
bit_nr
].
chr
)
if
(
chr
==
0
||
!
follow
[
bit_nr
].
chr
)
...
@@ -751,13 +751,13 @@ static void free_sets(REP_SETS *sets)
...
@@ -751,13 +751,13 @@ static void free_sets(REP_SETS *sets)
return
;
return
;
}
}
static
void
set_bit
(
REP_SET
*
set
,
uint
bit
)
static
void
internal_
set_bit
(
REP_SET
*
set
,
uint
bit
)
{
{
set
->
bits
[
bit
/
WORD_BIT
]
|=
1
<<
(
bit
%
WORD_BIT
);
set
->
bits
[
bit
/
WORD_BIT
]
|=
1
<<
(
bit
%
WORD_BIT
);
return
;
return
;
}
}
static
void
clear_bit
(
REP_SET
*
set
,
uint
bit
)
static
void
internal_
clear_bit
(
REP_SET
*
set
,
uint
bit
)
{
{
set
->
bits
[
bit
/
WORD_BIT
]
&=
~
(
1
<<
(
bit
%
WORD_BIT
));
set
->
bits
[
bit
/
WORD_BIT
]
&=
~
(
1
<<
(
bit
%
WORD_BIT
));
return
;
return
;
...
...
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