1
0
Fork 0

Remove traces of Visier.

This commit is contained in:
Jonathan Chan 2021-05-15 17:29:52 -07:00
parent 7eac04f2d7
commit 5f0eb7e0bd
4 changed files with 2 additions and 9 deletions

View File

@ -4,7 +4,6 @@ import os
failed_pattern = re.compile("^\*\*\*.*$") failed_pattern = re.compile("^\*\*\*.*$")
null_author = re.compile("^<>$") null_author = re.compile("^<>$")
visier_prepended = re.compile("^VISIER\\\.*$")
full_name_no_email = re.compile("^([A-Z][\w\-]*\s?)+$") full_name_no_email = re.compile("^([A-Z][\w\-]*\s?)+$")
full_name_null_email = re.compile("^([A-Z][\w\-]*\s?)+<>$") full_name_null_email = re.compile("^([A-Z][\w\-]*\s?)+<>$")
full_name_with_email = re.compile("^([A-Z][\w\-]*\s?)+<.+>$") full_name_with_email = re.compile("^([A-Z][\w\-]*\s?)+<.+>$")
@ -44,8 +43,6 @@ def replace_author(author):
return "nulluser <>" return "nulluser <>"
if null_author.match(author): if null_author.match(author):
return "nulluser " + author return "nulluser " + author
if visier_prepended.match(author):
return replace_author(author[7:])
if full_name_with_email.match(author): if full_name_with_email.match(author):
fullname = author.split("<")[0].strip() fullname = author.split("<")[0].strip()
email = author.split("<")[1].split(">")[0].strip() email = author.split("<")[1].split(">")[0].strip()

View File

@ -17,7 +17,7 @@ git config --bool core.bare true
# WARNING !!! # WARNING !!!
# ----------- # -----------
# VSERVER HAS DIFFICULTY RUNNING HG-FAST-EXPORT AFTER THE FOLLOWING HAVE BEEN DONE. # RUNNING HG-FAST-EXPORT AFTER THE FOLLOWING HAVE BEEN DONE IS DIFFICULT.
# DO NOT EXECUTE ANY OF THE FOLLOWING UNTIL YOU ARE SURE GIT NO LONGER NEEDS TO SYNC WITH HG!! # DO NOT EXECUTE ANY OF THE FOLLOWING UNTIL YOU ARE SURE GIT NO LONGER NEEDS TO SYNC WITH HG!!
# TO CLEAN UP LARGE FILES # TO CLEAN UP LARGE FILES
@ -62,6 +62,3 @@ rm -rfi * # removes everything except dotfiles!!!
* convert bare repo to non-bare * convert bare repo to non-bare
git config --bool core.bare false git config --bool core.bare false
git checkout master -f git checkout master -f
# NOTES
rm -rf com.visiercorp.vserver-git-bfg && git clone --mirror com.visiercorp.vserver-git com.visiercorp.vserver-git-bfg/.git && cd com.visiercorp.vserver-git-bfg && git gc && java -jar ../hg-git-migration/bfg.jar --strip-blobs-bigger-than 40M . && git reflog expire --expire=now --all && git gc --prune=now --aggressive

View File

@ -15,7 +15,7 @@ fi
echo "Stripping out large files with BFG Repo-Cleaner..." echo "Stripping out large files with BFG Repo-Cleaner..."
mkdir -p $bfg_cleaner mkdir -p $bfg_cleaner
curl "http://repo1.maven.org/maven2/com/madgag/bfg/1.12.15/bfg-1.12.15.jar" -o $bfg_cleaner/bfg.jar curl "https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar" -o $bfg_cleaner/bfg.jar
java -jar $bfg_cleaner/bfg.jar --strip-blobs-bigger-than 40M $target java -jar $bfg_cleaner/bfg.jar --strip-blobs-bigger-than 40M $target
git reflog expire --expire=now --all git reflog expire --expire=now --all
git gc --prune=now --aggressive git gc --prune=now --aggressive

View File

@ -5,7 +5,6 @@ format matches replace
Full Name ^([A-Z]\w*\s?)+$ fullname with username and append with <email> Full Name ^([A-Z]\w*\s?)+$ fullname with username and append with <email>
Full Name <> ^([A-Z]\w*\s?)+<>$ fullname with username and <> with <email> Full Name <> ^([A-Z]\w*\s?)+<>$ fullname with username and <> with <email>
Full Name <name@email.com> ^([A-Z]\w*\s?)+<.*>$ fullname with username Full Name <name@email.com> ^([A-Z]\w*\s?)+<.*>$ fullname with username
VISIER\username <name@email.com> ^VISIER\\.*$ drop 7 and recurse
username ^\w*$ append with <email> username ^\w*$ append with <email>
username <> ^\w*\s?<>$ <> with <email> username <> ^\w*\s?<>$ <> with <email>
username <name@email.com> ^\w*\s?<.*>$ do nothing username <name@email.com> ^\w*\s?<.*>$ do nothing