Is it possible to link SVN repository files so that a file is actually a reference to another repository's file?

前端 未结 4 874
遇见更好的自我
遇见更好的自我 2020-12-03 04:33

I can see some potential difficulties with this concept but the idea is:

I change a file in Repository A and commit, Repository B has a file that is a link to a fil

4条回答
  •  一向
    一向 (楼主)
    2020-12-03 04:47

    Check out this post..
    It helped me
    how to properly set svn svn externals property in svn command line

    For those who dont want to follow the link here is a brief overview.

    svn propset svn:externals 'akismet http://plugins.svn.wordpress.org/akismet/trunk' .
    
    • akismet - dir or file name you want your link to be called
    • http://plugins.svn.wordpress.org/akismet/trunk - The link to the svn repo you want to link to
    • . - The current directory so make sure your in the dir you want the link to reside

    After running the above do a

    svn commit
    

    and

    svn update
    

提交回复
热议问题