anisha@linux-y3pi:~/Desktop/mysvn> svn list https://earthhtml.googlecode.com/svn/
branches/
manual.cpp
ogmap.html
svn-book.pdf
tags/
trunk/
wiki/但是,这只下载了一个文件:
anisha@linux-y3pi:~/Desktop/mysvn> svn checkout https://earthhtml.googlecode.com/svn/trunk
Checked out revision 3.
anisha@linux-y3pi:~/Desktop/mysvn> ls
manual.cpp manual.cpp~ ogmap.html svn-book.pdf trunk
anisha@linux-y3pi:~/Desktop/mysvn> cd trunk/
anisha@linux-y3pi:~/Desktop/mysvn/trunk> ls
ogmap.html为什么是这样?
http://code.google.com/p/earthhtml/source/browse/#svn%2Ftrunk
发布于 2012-07-09 08:58:05
因为目录只包含一个文件?指向存储库web视图的链接证明了这一点。您首先列出的文件更高一个目录级别,因此如果您想要所有这些文件,请执行以下操作:
svn checkout https://earthhtml.googlecode.com/svn要使用svn list查看一个文件,请列出主干文件夹的内容:
svn list https://earthhtml.googlecode.com/svn/trunk将其与前面的命令进行比较,希望这是显而易见的,为什么您只需要一个文件--您只请求主干文件夹,而不是整个存储库内容。
储存库结构:
branches/
/.../
manual.cpp
ogmap.html
svn-book.pdf
tags/
/.../
trunk/
ogmap.html
wiki/
/.../svn checkout直接复制存储库的结构(否则很难同步回来)。如果您只指定要一个子文件夹,它将只下载该子文件夹;这称为部分签出。
发布于 2012-07-09 08:58:54
我可能遗漏了一些东西,但你只签出了“后备箱”,它实际上只有一个文件在它的修订中,在这里没有什么奇怪的。试试svn checkout https://earthhtml.googlecode.com/svn/,让我们知道。
https://unix.stackexchange.com/questions/42639
复制相似问题