Code Monkey home page Code Monkey logo

svntogit's Introduction

Svntogit: subversion to git migration tool

Svntogit is a script that allows for cloning of Subversion repositories and converting them to Git. It consults the index of repositories, lists them and then uses either SubGit or git svn clone to convert them.

How it works

This script will download and convert all repositories from Subversion server from SVN to Git. In order to do that prompts for the needed credentials to access the server's repository list and catches it in HTML format. Using BeautifulSoup it filters the links for the repositories into a list. Once this first stage is done, next is the migration itself of every repository. At the end, the migration results are shown and registered into correct and incorrect files lists.

Using Svntogit as a Python script

Before you begin, make sure you have these installed in your system:

  • Python 3 to run the script.
  • BeautifulSoup library to filter server response to a repo list, to download it you can use pip install bs4.
  • TMate SubGit if you prefer to use the SubGit flavor of the script.
  • Git to manage the cloned repositories.

Now you can use the script directly from the terminal, to do so:

  • Copy the svntogit-subgit.py file into the folder you want all the new Git repositories to be stored.
  • Use python3 svntogit-subgit.py enter your credentials and wait all the repositories to be processed.

Using Svntogit as an executable

Use the latest build:

  • Download the compiled executable from the Releases section

Compile it with PyInstaller:

  • Alternatively, you can compile it yourself using PyInstaller. If you don't have it installed, you can do it with pip install -U pyinstaller and then use it to compile the script with pyinstaller svntogit-subgit.py

svntogit's People

Contributors

ignaciocassi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.