我想链接SVN中的目录,如本文所示:Is it possible to link SVN repository files so that a file is actually a reference to another repository's file?但是我似乎做错了。这就是我在做的事情:
cd $HOME
mkdir svn
mkdir svn_checkout
svnadmin create svn/test
cd svn_checkout
svn co file:///$HOME/svn/test
cd test
echo 'Hello world!' > hello_world.txt
svn add hello_world.txt
svn commit -m "added first file."
cd $HOME
svnadmin create svn/test2
cd svn_checkout
svn co file:///$HOME/svn/test2
cd test2
svn propset svn:externals 'test file:///$HOME/svn/test' .
svn commit -m "added externals."
svn update
当我运行更新时,我得到了这个:
Updating '.':
svn: warning: W200000: Error handling externals definition for 'test':
svn: warning: W180001: Unable to connect to a repository at URL 'file:///$HOME/svn/test' At revision 1.
svn: E205011: Failure occurred processing one or more externals definitions
有谁知道如何解决我的问题?哦,如果重要的是我的版本号。
svn --version
svn, version 1.8.10 (r1615264)