diff options
-rwxr-xr-x | scripts/mageia-reset-and-import.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/mageia-reset-and-import.sh b/scripts/mageia-reset-and-import.sh index b50e5f1..664dc12 100755 --- a/scripts/mageia-reset-and-import.sh +++ b/scripts/mageia-reset-and-import.sh @@ -380,6 +380,11 @@ popd # CREATE TABLE refs (distro char(3) NOT NULL, soft varchar(255) NOT NULL, revision int(10) unsigned NOT NULL, sha1 char(40) NOT NULL, head varchar(255) NOT NULL); +# Parse a git-svn revmap file into SQL +# $1 = Name of revmap file +# $2 = Distro ('mdv' or 'mga') +# $3 = head name i.e. branch or tag name (only used when not processing trunk/master) +# $4 = Special SHA1 (last sha1 to look for if 'mdv', fake sha1 commit if 'mga') parsesvnrevmap() { if [ ! -f "$1" ]; then |