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

后端 未结 8 2204
广开言路
广开言路 2020-12-02 06:44

Treating my repository as a SVN repo, I get:

svn co http://myrepo/foo/trunk foo
...
foo/
  bar/
  baz/ -> http://myrepo/baz/trunk

Treati

相关标签:
8条回答
  • 2020-12-02 07:17

    try this python script https://bitbucket.org/nytmyn/gitsvnext/overview

    to checkout svn externals run following in your git repository

    python /../gitsvnext/run update
    

    run this to know what to put to .git/info/exclude

    python /../gitsvnext/run list
    
    0 讨论(0)
  • 2020-12-02 07:19

    Here's what I've done.

    First I created an empty SVN repo (for the same root as the git):

    svn checkout --depth empty http://path/to/repo .
    

    This created empty svn repo in the git root. The point is that is contains the SVN externals properties.

    Next I simply check only the externals (I placed in PATH cygwin tools):

    svn propget svn:externals | sed -e 's/ / .\//' | sed -e 's/\'//g' | xargs -L1 svn co
    
    0 讨论(0)
提交回复
热议问题