Giter Site home page Giter Site logo

Comments (6)

slaci avatar slaci commented on June 10, 2024

This utility can create a git repo from a SVN repository, not a working copy. You need the repository which was created by svnadmin create once (on a server).

I got this error too when I tried to use a working copy (checked out by svn checkout). Working copies have a format file in their .svn folder and it contains 12 for me which this utility doesn't like either (eg if you try wiki/.svn then that will emit a different error).
However, repositores have the format file in their root and that is what this tool expects.

from svn2git.

AnLupoTamTamy avatar AnLupoTamTamy commented on June 10, 2024

Thank you for your answer. This mean that I need to connect to remote SVN server where I have the repository and on that server start the tool?
Is there a way to run the process on a server which is not the server on which SVN server is installed? If I understand correctly your answer, this utility can't run on my local pc.

from svn2git.

tnyblom avatar tnyblom commented on June 10, 2024

For KDE what we did was,
1: Set the SVN repository in read only mode.
2: rsync the remote SVN repository to the local PC
3: Run the conversion (on the local PC)
3.x: Verify/rerun until ok
4: Upload the resulting git repo(s)

from svn2git.

slaci avatar slaci commented on June 10, 2024

Check if you can run svnadmin on your local computer. I think the subversion package installs it too.

Someone must dump the repository for you on the server with svnadmin dump repo_directory > repo.dump. On newer versions it may be svnadmin dump --file=repo.dump repo_directory (check svnadmin dump --help)

Then you can load that dump on your computer and use this tool:

svnadmin create mylocalrepo
svnadmin load mylocalrepo < repo.dump
# on newer versions it may be
# svnadmin load --file=repo.dump mylocalrepo
# check svnadmin load --help

# now pass the mylocalrepo directory to the tool

Or it is possible to just download the repository directory (like mentioned above by rsync) and use that, but not sure if that works always if versions differ too much. Dump and load should work all the times I think.

from svn2git.

AnLupoTamTamy avatar AnLupoTamTamy commented on June 10, 2024

Thank you for your suggestions! I tried to to run svnadmin and is available locally. I'll try as soon as possible (i.e. when I'll receive the dump from system administrators) and I'll be back with result I'll achieve.
When I run this migration is also possible to retrieve new updates from svn or, once the migration is completed, it won't be possible to get new commits from svn and migrate them to git? Just to know if the migration suppose that the svn repository won't be used anymore by committers and only the new git repository has to be used.

from svn2git.

slaci avatar slaci commented on June 10, 2024

I don't know that. There are some open issues about incremental update. The tool can record some metadata into the commit messages, but I don't know if it can use it to continue a migration like git svn. Sadly no idea.

from svn2git.

Related Issues (20)

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.