SVN 怪异第 2 天:SVN 列表和 SVN 更新报告不同的事情
在我的 svn 工作副本的子目录中,我
svn list
看到存储库中有 6 个文件(与我在 SVNX 中看到的相同)。 好的。 但在我的工作副本中,有两个文件,它们来自我不记得的某个历史点。 所以我这样做了
svn update
,它说所有文件都是最新的修订版 122(这是头修订版)。 更新和列表之间有何区别?更重要的是,如何在不重新签出的情况下取回这些文件?
我知道答案要么表明我是一个完全的新手,要么表明 svn 是一个可怕的拼凑。 就我个人而言,我只想回去工作。
编辑: svn cleanup
根本不执行任何操作,并且 svn status
根本不报告任何内容。
编辑:这正是我所做的,因为一位评论者问了。
root@Dans-13:/dans-data/php/nasa-secrets-revealed/trunk/images/testmenu$svn update
At revision 122.
root@Dans-13:/dans-data/php/nasa-secrets-revealed/trunk/images/testmenu$svn list
graph-big0.gif
graph-big1.gif
graph-big2.gif
graph0.gif
graph1.gif
graph2.gif
root@Dans-13:/dans-data/php/nasa-secrets-revealed/trunk/images/testmenu$ls
.svn graph-big0.gif graph0.gif
In a subdirectory of my svn working copy, I do
svn list
I see that there are 6 files in the repository (same as I see with SVNX). Nice. But in my working copy, there are two files, which are from some historical point that I do not remember. So I do
svn update
and it says that all files are up to date to revision 122 (which is the head revision). How can there be a difference between doing an update and a list? More importantly, how can I get those files back without doing a fresh checkout?
I know that the answer will either reveal that I'm a complete newbie OR that svn is a terrible kludge. Personally, I just want to get back to work.
Edit: svn cleanup
does nothing at all, and svn status
reports nothing at all.
Edit: Here's exactly what I did, since one of the commenters asked.
root@Dans-13:/dans-data/php/nasa-secrets-revealed/trunk/images/testmenu$svn update
At revision 122.
root@Dans-13:/dans-data/php/nasa-secrets-revealed/trunk/images/testmenu$svn list
graph-big0.gif
graph-big1.gif
graph-big2.gif
graph0.gif
graph1.gif
graph2.gif
root@Dans-13:/dans-data/php/nasa-secrets-revealed/trunk/images/testmenu$ls
.svn graph-big0.gif graph0.gif
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可能有一个稀疏结帐。 尝试
You might have a sparse checkout. Try
目录中是否设置了 svn:ignore 属性?
Is there a
svn:ignore
property set up in the directory?据我对SVN的了解,这是完全不可能的,也不应该发生的。
最终我最终这样做了:从上一级删除整个目录并运行
svn update
。 有时,答案是解决问题。From what I know of SVN, this is completely impossible and should not happen.
Eventually I ended up doing this: Delete the entire directory from level up and run
svn update
. Sometimes, the answer is to walk around the problem.或者您可能已在该工作副本文件夹中执行了 svn switch 或 svn update -r X 。 svn:info 的输出可以告诉你这一点。
Or maybe you have done svn switch or svn update -r X in that working copy folder. The output from svn:info could tell you that.