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

查看:23
本文介绍了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.

我该如何解决这个问题?

How can I get around this?

推荐答案

我不确定您要做什么:如果您通过

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(在本例中)撤销添加操作.

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天全站免登陆