-
-
Save senderghost/989b1cafe20628052e40ed426733aa1d to your computer and use it in GitHub Desktop.
The svn2git rules for local or svnsync(ed) U++ repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The svn2git rules for local or svnsync(ed) U++ repository | |
declare REPO=upp.git | |
create repository ${REPO} | |
end repository | |
# Move root directories to master branch for svn commits from 1 to 280 | |
match / | |
repository ${REPO} | |
min revision 1 | |
max revision 280 | |
branch master | |
end match | |
# Remove empty 281 svn revision for "changed svn layout" commit | |
match / | |
min revision 281 | |
max revision 281 | |
end match | |
# Move /trunk directories to master branch | |
match /trunk/ | |
repository ${REPO} | |
branch master | |
end match | |
# Create branches for /branches directories | |
match /branches/([^/]+)/ | |
repository ${REPO} | |
branch \1 | |
end match | |
# Create annotated tags for /tags directories | |
match /tags/([^/]+)/ | |
repository ${REPO} | |
branch refs/tags/\1 | |
annotated true | |
end match | |
# Ignore other root directories, if needed | |
#match / | |
#end match | |
# Create branches for bin, classic, sandbox, etc. root directories | |
match /([^/]+)/ | |
repository ${REPO} | |
branch root/\1 | |
end match |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment