Difference between revisions of "Git Conversion Lazarus"
From Lazarus wiki
Jump to navigationJump to search (Created page with "This page has the detailed steps used to convert the Lazarus SVN repro to git. = SubGIT = The initial conversion will be done using TMate Subgit. == Install == Unpack sub...") |
(→SubGIT) |
||
Line 62: | Line 62: | ||
follow the steps above | follow the steps above | ||
+ | |||
+ | = Part 2 = | ||
+ | |||
+ | * Updating gitignore | ||
+ | * Prefixing all issue references with # | ||
+ | * translating svn revisions to git hashes |
Revision as of 12:13, 1 July 2021
This page has the detailed steps used to convert the Lazarus SVN repro to git.
SubGIT
The initial conversion will be done using TMate Subgit.
Install
Unpack subgit to
~/subgit/subgit-3.3.11
Required
An author.txt file
svn-name - git-name <email>
Run / main repro
cd ~/subgit/subgit-3.3.11 ./bin/subgit configure https://svn.freepascal.org/svn/lazarus laz.git gedit laz.git/subgit/config
And add the following (the first line, replaces an existing setting)
[svn] trunk = trunk:refs/heads/main gitCommitMessage = %message\\n\\n SVN %revision@%branch\\n [translate] eols = false otherProperties = false ignores = false
The translate options prevent .gitignore and .gitattributes. Those can be translated, but will later be replaced...
cp authors.txt laz.git/subgit/authors.txt
./bin/subgit install laz.git
Without skipping the gitignore/gitattributes, there will be an error at revision 47330. The process will hang. nterrupt it and editI
lazarus.git/svn/.metadata
and set branches-maxRev and tags-maxRev to 47332 (it should be at 47330) https://stackoverflow.com/questions/18918215/skip-revisions-when-installing-subgit-repository Continue with
./bin/subgit install laz-bin.git
Stop the daemon
./bin/subgit shutdown laz-bin.git/
Run / binaries repro
./bin/subgit configure https://svn.freepascal.org/svn/lazarus laz-bin.git
gedit laz.git/subgit/config [svn] gitCommitMessage = %message\\n\\n SVN %revision@%branch\\n trunk = binaries:refs/heads/main
cp authors.txt laz-bin.git/subgit/authors.txt
follow the steps above
Part 2
- Updating gitignore
- Prefixing all issue references with #
- translating svn revisions to git hashes