Skip to content
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

svn:external #85

Open
souaremsaidou opened this issue Jan 16, 2020 · 6 comments
Open

svn:external #85

souaremsaidou opened this issue Jan 16, 2020 · 6 comments

Comments

@souaremsaidou
Copy link

souaremsaidou commented Jan 16, 2020

Hello,

I want to migrate old SVN to git

the SVN repository is like:

http://svn/Sky/trunk/folder1/
http://svn/Sky/trunk/folder2/
http://svn/Sky/branches/0.1/folder1/
http://svn/Sky/branches/0.1/folder2/

...

http://svn/Sky/branches/X.Y.Z/folder1/
http://svn/Sky/branches/X.Y.Z/folder2/

but folder2 is an svn:external from http://svn/Moon/tags/18_10_2013/sources/folder2 project at a specific tag on trunk.

and

folder2 is an svn:external from http://svn/Moon/tags/01_10_2013/sources/folder2 project at a specific tag on /branches/0.1.

and so... for /branches/X.Y.Z/

How can i write the match rules in those cases?

BR

@Vampire
Copy link
Contributor

Vampire commented Jan 16, 2020

afair svn:external is not yet supported and you would either need to implement it first or do some post processing of the result

@souaremsaidou
Copy link
Author

souaremsaidou commented Jan 16, 2020

how to post process? Have you an idea to do that?

@Vampire
Copy link
Contributor

Vampire commented Jan 16, 2020

No, I didn't convert any SVN repo with externals yet.
You probably need to search all SVN repos where externals are modified and then edit the Git history to use some replacement like Git submodules.

@souaremsaidou
Copy link
Author

is git filter-branch a right tool to rewrite the history?

and how can i get the svn:externals for each (branches/trunk/tags) ? i have over 17000 branches and 500 tags.

@Vampire
Copy link
Contributor

Vampire commented Jan 16, 2020

is git filter-branch a right tool to rewrite the history?

Probably, yes.

and how can i get the svn:externals for each (branches/trunk/tags) ? i have over 17000 branches and 500 tags.

I guess you even have to go through all commits, but as I said, no idea, never did this before.

@s3ts
Copy link

s3ts commented Oct 27, 2021

I vote +1 for this feature as well to either allow for registering a script for each svn:external to handle it or via a C++ callback that can be added as an example. The base case would seem to be if svn:external is referring to the same SVN repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants