我如何更正“提交失败.文件 xxx 已过期.找不到 xxx 路径." [英] How do I correct "Commit Failed. File xxx is out of date. xxx path not found."

查看:25
本文介绍了我如何更正“提交失败.文件 xxx 已过期.找不到 xxx 路径."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近遇到了一个关于在 subversion 中提交合并结果的特别棘手的问题.我们的 Subversion 服务器是 @ 1.5.0,我的 TortoiseSVN 客户端现在是 @ 1.6.1.

I have recently run into a particularly sticky issue regarding committing the result of a merge in subversion. Our Subversion server is @ 1.5.0 and my TortoiseSVN client is now @ 1.6.1.

我正在尝试将一个功能分支合并回我的主干.合并似乎工作正常;但是,提交失败并显示以下错误消息.

I am trying to merge a feature branch back into my trunk. The merge appears to work okay; however, the commit fails with the following error message.

Commit failed (details follow):
File 
'flex/src/com/penbay/invision/portal/services/http/soap/ReportServices/GetAllBldgsParamsByRegionBySiteResultEvent.as' 
is out of date
'/svn/ibis/!svn/wrk/531d459d-80fa-ea46-bfb4-940d79ee6d2e/visualization/trunk/source/flex/src/com/penbay/invision/portal/services/http/soap/ReportServices/GetAllBldgsParamsByRegionBySiteResultEvent.as' 
path not found
You have to update your working copy first.

我的工作后备箱是最新的.我什至已将一个新文件签出到另一个文件夹中,以确保没有任何本地 cruft 与合并混淆.我对此进行了更多研究,我认为部分问题是用户错误.我认为我们的问题是:

My working trunk is up to date. I have even checked out a new one into a different folder to make sure there wasn't any local cruft messing with the merge. I have done some more research into this and I think part of the problem is user error. I think our problems are:

  1. 我们有一些开发人员在 1.5 之前和一些之后使用 subversion 客户端提交工作.我相信这有可能破坏合并信息.
  2. 在其他分支中,我们执行了部分合并.也就是说,我们并不总是在分支的根部执行合并.这是为了方便在同一分支内更新 Flex 和 .NET 工作.
  3. 我们在我们的分支上执行了循环(自反)合并.这样做是因为我们有多个并行分支,并且我们希望使用主干中的最新代码定期更新我们的分支.

Subversion 书籍/团队明确不推荐所有这些内容.我们已经吸取了教训,现在知道了最佳实践.但是,我们首先需要合并并提交我们最新的分支.

All of these things are explicitly not recommended by the Subversion book/team. We have learned our lesson and now know the best practices. However, we first need to merge and commit our latest branch.

纠正我们遇到的问题的最佳方法是什么?

What it the best way to correct the problems we are encountering?

删除主干和分支中的所有合并信息是一个可行的解决方案吗?没有.我已经这样做了,但它没有解决我上面提到的错误.

Would deleting all the merge info in the trunk and branch be a viable solution? No. I have done this but it does not resolve the error that I am getting above.

推荐答案

我今天遇到了同样的问题,我还没有进行任何中间合并,所以从你的开篇帖子中只有 #1 可能适用 - 但是我已经提交来自ubuntu中的svn客户端以及Windows中的tortoisesvn.幸运的是,在我的情况下,没有对主干进行任何更改,因此我可以用分支替换主干.可能有不同的 svn 版本呢?这很令人担忧.

I've had the same issue today and I've not done any intermediate merges so from your opening post only #1 might apply - however i have made commits both from an svn client in ubuntu as well as tortoisesvn in windows. Luckily in my case no changes to the trunk were made so I could just replace the trunk with the branch. Possibly different svn versions then? That's quite worrying.

如果您使用 svn move/copy/delete 功能,尽管在我的情况下没有丢失历史记录 - 我 svn 移动了主干,然后 svn 将分支移动到主干.

If you use the svn move / copy /delete functions though no history is lost in my case - i svn moved the trunk and then svn moved the branch to trunk.

这篇关于我如何更正“提交失败.文件 xxx 已过期.找不到 xxx 路径."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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