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

From Andreida
No edit summary
No edit summary
Line 33: Line 33:
* Use the same Fossil version on both systems or at least don't have them differ to much in version.
* 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".
* Do not use ".exe" when you give the path to Fossil on the Windows system with "fossil=D:/fossil".


=== Forum ===
Quoting multiple lines without empty lines:

<code>
&lt;blockquote&gt;&lt;pre&gt; <br/>
Line 1 <br/>
Line 2 <br/>
Line 3 <br/>
&lt;/pre&gt;&lt;/blockquote&gt;
</code>

Revision as of 12:42, 27 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".


Forum

Quoting multiple lines without empty lines:

<blockquote><pre>
Line 1
Line 2
Line 3
</pre></blockquote>