Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A true, robust, git svn externals solution?

When you check out a git repository that contains svn externals, it will simply ignore them. What people have done is create many scripts, many of them mentioned in this question How do I keep an svn:external up to date using git-svn?. The problem is that while numerous scripts are floating on the internet, I have yet to find one that was actually robust. By robust, I mean specifically:

  1. It can handle svn externals pegged to a particular revision
  2. It can handle svn externals that point to a file instead of a directory

Because these are 2 issues with my repository that seem to bring most scripts down. I have no interest in using smartgit.

Is there such a script? Does anyone have a script that is "almost there" that could be adapted to these 2 things rather quickly?

like image 434
newmanne Avatar asked Aug 13 '12 18:08

newmanne


People also ask

What are externals in SVN?

What are externals definitions? Externals definitions map a local directory to the URL of a versioned resource. The svn:externals property can be set on any versioned directory and its value is a multi-line table of subdirectories and absolute repository URLs.

What is SVN and Git?

The difference between Git and SVN version control systems is that Git is a distributed version control system, whereas SVN is a centralized version control system. Git uses multiple repositories including a centralized repository and server, as well as some local repositories.

Can I use Git and SVN at the same time?

No interaction between them. Just ignore the . git folder for SVN and the . svn folder for Git and you should be fine.


1 Answers

No, there is no perfect solution that just works. You can refer to:

How do I keep an svn:external up to date using git-svn?

git & svn externals - a final solution yet?

like image 68
Atilla Filiz Avatar answered Oct 07 '22 16:10

Atilla Filiz