3 unstable releases

0.2.1 Sep 9, 2024
0.2.0 Aug 10, 2024
0.1.0 Jul 22, 2024

#535 in Development tools

Download history 61/week @ 2024-07-23 3/week @ 2024-07-30 104/week @ 2024-08-06 14/week @ 2024-08-13 74/week @ 2024-09-03 68/week @ 2024-09-10 17/week @ 2024-09-17 20/week @ 2024-09-24 37/week @ 2024-10-01

146 downloads per month

MIT/Apache

320KB
8K SLoC

svn2git

GitHub Actions Status MSRV

A Subversion to Git repository converter

Features

  • Uses Subversion dump files as input.
    • Supports version 2 (without deltas) and version 3 (with deltas).
    • It can be optionally compressed with gzip, bzip2, XZ, zstd or LZ4.
  • It does not require to have Git installed in the same machine.
  • Efficient. Given the old GCC Subversion repository (280157 revisions), provided as a version 3 (with deltas) dump compressed with XZ:
    • It takes 50 minutes to finish with an Intel i7-8750H CPU and a SATA SSD.
    • It uses up to 2.2 GiB of RAM and 6.5 GiB of disk during conversion.
    • The resulting Git repository takes 2.8 GiB of disk, without needing to run git repack.

Install

Pre-built binaries

You can download binaries for Linux and Windows from the GitHub releases page.

Dependencies

svn2git does not have runtime dependencies, but you will likely need Subversion (to prepare the origin repository) and Git (to do anything with the result of the conversion).

Build from source

If you have a Rust toolchain installed, you can clone this repository and build a working executable:

cargo build --release

Usage

Check the documentation and tutorial from the book.

License

Licensed under either of

at your option.

Dependencies

~25–36MB
~569K SLoC