Fossil (distributed software configuration management system): Difference between revisions

From Andreida
No edit summary
Line 1: Line 1:
Homepage of Fossil: https://www.fossil-scm.org
Homepage of Fossil: https://www.fossil-scm.org

=== Migrate from svn to Fossil ===

We first migrate to git, then to Fossil.

==== Migrate from svn to git ====
git svn clone https://<IP>/<path>/<repo-name>
Example:
git svn clone https://192.168.0.145/svn/src

This will get the complete history from the svn repository and create a new git repository with the original name.

==== Migrate from git to Fossil ====

cd into the git repository, then
git fast-export --all | fossil import --git newName.fossil


=== Cloning Windows repository from Linux to itself ===
=== Cloning Windows repository from Linux to itself ===

Revision as of 19:07, 26 September 2019

Homepage of Fossil: https://www.fossil-scm.org

Migrate from svn to Fossil

We first migrate to git, then to Fossil.

Migrate from svn to git

git svn clone https://<IP>/<path>/<repo-name>

Example:

git svn clone https://192.168.0.145/svn/src

This will get the complete history from the svn repository and create a new git repository with the original name.

Migrate from git to Fossil

cd into the git repository, then

git fast-export --all | fossil import --git newName.fossil

Cloning Windows repository from Linux to itself

  • Create ssh access with a key
  • Prepare a config file like the following
 Host mywindows
       HostName                192.168.0.144
       User                    Sabine
       Port                    22
       ServerAliveInterval     60
       IdentityFile           ~/.ssh/rsa-sabine.private
  • Do the cloning like this:
fossil clone -v ssh://mywindows/D:/test1.repo?fossil=D:/fossil test2.repo


Things to watch for:

  • Use the same Fossil version on both systems or at least don't have them differ to much in version.
  • Do not use ".exe" when you give the path to Fossil on the Windows system with "fossil=D:/fossil".