brazerzkidaiinternet.blogg.se

Smartgit svn
Smartgit svn










  1. Smartgit svn how to#
  2. Smartgit svn install#
  3. Smartgit svn code#

Matching groups can be created, and the values used in the parameters. Rules create respositoryĬreates a rule that matches paths by REGEX and applies some PARAMETERS to them. Feel free to add more documentation here as well. The rules are also documented in the 'samples' directory of the svn2git repository.

Smartgit svn how to#

You need to write a rules file that describes how to slice the Subversion history into Git repositories and branches. There is a repository kde-ruleset which has several example files and one file that should become the final ruleset for the whole of KDE called 'kde-rules-main'. In build/tmp to investigate the situation. test.sh -no-make svn-ignore and then look So if for example some test in svn-ignore.bats failed, you can investigate the failed case likeīATSLIB_TEMP_PRESERVE_ON_FAILURE=1. You can set the environment variables BATSLIB_TEMP_PRESERVE=1 or BATSLIB_TEMP_PRESERVE_ON_FAILURE=1. If you want to investigate the temporary files generated during a test run, If you want to only run a subset of the tests, you can specify the base-name of one If you want to run tests without running make, you can give -no-make as first parameter.

Smartgit svn code#

Running the script will automaticallyĮxecute qmake and make first to build the current code if necessary. To run all tests you can simply call the test.sh script in the root directory.įound in.

Smartgit svn install#

Sudo apt-get install build-essential subversion git qtchooser qt5-default libapr1 libapr1-dev libsvn-dev For Ubuntu distros, use this command to install them all: You will need to have some packages to compile it. Running the command will give you all the options you can pass to the tool.) You can only build it after having installed libsvn-dev, and naturally Qt. Sample usage with input mounted in /tmp and output produced in /workdir:ĭocker run -rm -it -v `pwd`/workdir:/workdir -v /var/lib/svn/project1:/tmp/svn -v `pwd`/conf:/tmp/conf svn2git /usr/local/svn2git/svn-all-fast-export -identity-map /tmp/conf/thors -rules /tmp/conf/les -add-metadata -svn-branches -debug-rules -svn-ignore -empty-dirs /tmp/svn/ Just mount your SVN folder, plus another working directory where Git repository will be created. If you have a proper ruleset the tool will create the git repositories for you and show progress while converting commit by commit.Īfter it is done you likely want to run git repack -a -d -f to compress the pack file as it can get quite big. The ruleset can specify which git repository to use and thus you can have more than one git repository as a result of running the conversion.Īlso noteworthy is that you can have a rule that, for example, changes in svnrepo/branches/foo/2.1/ will appear as a git-branch in a repository. The conversion exists of looping over each and every commit in the subversion repository and matching the changes to a ruleset after which the changes are applied to a certain path in a git repo.

smartgit svn

The svn2git repository gets you an application that will do the actual conversion. You can find more description and usage examples at How does it work This is the tool used to convert KDE's Subversion into multiple Git repositories. This project contains all the tools required to do a conversion of an svn repository (server side, not a checkout) to one or more git repositories.












Smartgit svn