Comments (6)
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.
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.
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.
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.
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.
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)
- Is it possible to start import at specific revision? HOT 1
- Can't generate tags for non-standard layout HOT 1
- Does here any plan to support incremental convert? HOT 1
- Export is not a git repository HOT 6
- How to start the migration on local computer of svn repository?
- How does min revision work? HOT 2
- Dockerfile fails to build HOT 4
- svn.cpp:37:10: fatal error: 'apr_lib.h' file not found HOT 1
- git-fast-import has been started once and crashed? HOT 1
- svn2git aborts with "Error: Writing process fatal: Root cannot be a non-directory" HOT 1
- Where do I have to run this tool? HOT 3
- Which format for revisions-file HOT 1
- Getting slower and slower on merged revisions and recorded revisions, non-linear runtime ? HOT 2
- What does "--svn-branches" do exactly? HOT 1
- How to use --msg-filter HOT 1
- Cherry Pick merges in svn are shown a git merges in git HOT 1
- new Github repo history gets corrupted when an SVN project history contains a "fork" for a different version HOT 3
- Add link to command documentation
- Add absolute path restriction to `svn-all-fast-export` command documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svn2git.