eclipse SVN:本地副本中缺少文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1688604/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SVN : missing files in local copy
提问by Julius
I use Eclipse Subversion client to checkout my project from a svn repository.
My coworkers has committed 2 new files which i can see on the svn remote repository but I can't get them when i update from the head.
The 2 files are in the trunk, like me.
Someone have an idea ?
我使用 Eclipse Subversion 客户端从 svn 存储库签出我的项目。我的同事提交了 2 个新文件,我可以在 svn 远程存储库上看到这些文件,但是当我从头部更新时无法获取它们。
这两个文件都在后备箱中,就像我一样。
有人有想法吗?
回答by tangens
Perhaps you have a sparse checkout? Then you could try do to an explicit update to the files:
也许你有一个稀疏的结帐?然后你可以尝试对文件进行显式更新:
svn update path/to/missing/file.txt
回答by Justin Hamade
Old question, but I had a similar problem.
老问题,但我遇到了类似的问题。
This is what I did. Check with
这就是我所做的。检查
svn ls
and compare to
并比较
ls -1
Then
然后
svn ls | xargs svn up
To do this recursively just add -R
要递归地执行此操作,只需添加 -R
svn ls -R | xargs svn up
Note that this will take a while if you have a big code base
请注意,如果您的代码库很大,这将需要一段时间
回答by fuzzygroove
You can also explicitly update to a revision using '-r' and then the current revision number:
您还可以使用“-r”和当前版本号显式更新到一个版本:
svn update -r 1234 path/to/missing/file.txt
回答by Julius
I switched to the HEAD and set the recursive options to full in the Eclispe Team menu. And now it works :-) Curious I was on the head before.
我切换到 HEAD 并在 Eclispe Team 菜单中将递归选项设置为 full。现在它起作用了:-) 很好奇我以前是在头脑中。