SVN(Subversion)问题“计划添加文件,但是丢失". -使用版本 [英] SVN (Subversion) Problem "File is scheduled for addition, but is missing" - Using Versions

查看:86
本文介绍了SVN(Subversion)问题“计划添加文件,但是丢失". -使用版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SVN版本.

I'm using Versions for SVN.

我尝试提交并收到此消息:

I attempt to commit and get this message:

提交失败(详细信息如下): '/Users/mike/Sites/mysite.com/astss-cvsdude/Trunk/cart/flashfile.swf' 计划添加,但是 失踪

Commit failed (details follow): '/Users/mike/Sites/mysite.com/astss-cvsdude/Trunk/cart/flashfile.swf' is scheduled for addition, but is missing

我想这是因为我已经向回购中添加了文件,然后通过文件系统删除了它们.

I suppose this is because I had added files to the repo, and then deleted them via the filesystem.

我只想记下我的更改,然后将更改应用于回购.

I'd like to have it simply make note of my change, and apply the change to the repo.

我该如何解决?

推荐答案

我不确定您要执行的操作:如果您通过以下方式添加了文件

I'm not sure what you're trying to do: If you added the file via

svn add myfile

您只告诉svn下一次提交时将此文件放入存储库 .键入

you only told svn to put this file into your repository when you do your next commit. There's no change to the repository before you type an

svn commit

如果在提交之前删除文件,则svn将其记录在记录中(因为您已添加),但由于文件已不存在而无法将其发送到存储库.

If you delete the file before the commit, svn has it in its records (because you added it) but cannot send it to the repository because the file no longer exist.

因此,您想要将文件保存在存储库中,然后将其从工作副本中删除:在这种情况下,请尝试取回文件(从回收站?),先提交并删除文件,然后通过

So either you want to save the file in the repository and then delete it from your working copy: In this case try to get your file back (from the trash?), do the commit and delete the file afterwards via

svn delete myfile
svn commit

如果您要撤消add而只是将文件丢掉,则可以转到

If you want to undo the add and just throw the file away, you can to an

svn revert myfile

告诉svn(在这种情况下)撤消add-Operation.

which tells svn (in this case) to undo the add-Operation.

编辑

对不起,我不知道您使用Max OSX的版本" GUI客户端.因此,要么使用GUI尝试在包含目录中还原,要么跳入冷水中启动您隐藏的Mac命令外壳:-)(在德语OSX中被称为终端",不知道如何用英语启动它)版本...)

Sorry, I wasn't aware that you're using the "Versions" GUI client for Max OSX. So either try a revert on the containing directory using the GUI or jump into the cold water and fire up your hidden Mac command shell :-) (it's called "Terminal" in the german OSX, no idea how to bring it up in the english version...)

这篇关于SVN(Subversion)问题“计划添加文件,但是丢失". -使用版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆