git & svn externals - a final solution yet?

后端 未结 2 993
误落风尘
误落风尘 2021-02-07 04:06

this is the workflow I currently use for my svn projects (I never use svn branches, and some projects are actively worked on by other people as well):

  • on the serve
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-07 04:26

    Unfortunately, svn's externals are quite flexible. I've run across a number of scripts that treat them as , but is also allowed. So I think some of the scripts are just broken in that regard.

    To answer your second subquestion: no. 'git svn fetch' needs to operate on a subtree of Subversion's repo, but it needs to be something it can treat like a branch. The only thing map well into that paradigm is a directory (trunk/, for example). FWIW, Bazaar and Mercurial suffer here too. At the end of the day, Subversion is just a versioned file system, whereas Git has a first class concept of a branch. This is one of those mismatches getting in the way. :-(

提交回复
热议问题