-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where do I have to run this tool? #142
Comments
I am also migration our SVN repositories to Git and can answer some of your questions.
The tool works directly on the SVN repository folder on the server. You could even copy your production SVN repo folder and run the tool on the copy. Thus, I would execute it directly on the server. This also has the benefit of fast file access without network in between. However, it might be possible to mount the SVN repo folder on the server as some network drive on another machine. But I did not try this and would not recommend it.
Yes. You can run the tool with different rule files. Each rule file could migrate one of your SVN projects and ignore the others. For example, you could use the following rule file to only migrate the trunk of
There are more examples here. You can test the tool with only a little portion of your whole repo. To do this, use If you run the command without parameters, then it shows a help text with available parameters.
The tool takes the path to the SVN repo folder on the server. Thus, I suggest to run the tool in the folder, where you want to have your new Git repositories. FYI: I noticed that the option |
Thank you so much for the detailed answer and the suggestions! I didn't get a point, so I'll try to ask a more detailed question: after I have built this program and I have the I tried to run it after I did a checkout of the project locally on my machine and it didn't work. If I have a repository structure on SVN server like this, whith many projects which willl become each one a specific git repository:
And I want to migrate the
In this configuration, do I have to run the executable directly in the
This means that I have to run the tool on the SVN server, but it's not important in which folder inside it, right? I must have access to the SVN server itself to do all this process. |
As I said, you need to run the tool on the SVN folder on the server. You MUST NOT run it on any checkout / clone of the repository. The folder structure in your example looks like a checkout.
The tool is available in some Linux distributions. On Ubunut, I was able to install it via
Yes.
Yes. With the rules file. As I said, the tool prints available parameters when called without arguments.
As you see,
Again, as I said, you do not run the tool on a checkout of your SVN repository. Run it on the server where the SVN repository is hosted. For example, you could call it like this: As you see, the location of svn-all-fast-export executable is irrelevant. Your rule file might look like this:
The rule file conisders the paths inside the SVN repository (like it would have been checked out). |
I've a SVN server with many different repositories, which often are not in standard layout.
My goal is to convert one or more of these repositories into git repositories, but I need to do this in different moments since each of these repo is huge and for other reason we cannot migrate them all together. Just for clarity, when I say "repository" I mean a specific project, which will become a git repository with its own history.
First of all, I get that I have to run the tool not on a local machine, but I don't get if I have to run it directly on the SVN server or not.
The second point is, can I migrate different repositories in different times?
It would be useful, apart from the ruleset files, to add a more explicit example about the configuration in the README.
If more details are required, please tell me. Thank you for the help! We can't see to migrate to Git :)
The text was updated successfully, but these errors were encountered: