无法提交到 Subversion [英] Unable to commit to Subversion

查看:44
本文介绍了无法提交到 Subversion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个客户,他不得不重建他的自动构建服务器.他从我的 Subversion 服务器检出他的项目文件夹,但现在无法提交 - 他收到此错误:

I have a client who had to rebuild his automated build server. He checked out his project folder from my subversion server but is now no longer able to commit - he gets this error:

Error: Commit failed (details follow):  
Error: Cannot write to the prototype revision file of transaction
'551-1' because a   
Error: previous representation is currently being written by another
process  
Finished!:   

我已经在 Google 上搜索过,但尽管经常报告此错误,但没有明确的解释 - StackOverflow 上的任何人有解决方案吗?

I have searched Google but although this error has been often reported there is no clear explanation - does anyone on StackOverflow have a solution?

更新:没有其他人提交到该存储库,所以它不是一个事务卡住(至少不是来自另一个用户).最后我们发现权限设置不正确.不是说您会从这条消息中知道它,而是解决了问题.

UPDATE: Nobody else commits to that repository, so it was not a transaction stuck (at least not from another user). In the end we found that permissions were not set correctly. Not that you would know it from this message, but that fixed the problem.

推荐答案

您可以在不重新启动的情况下清除此错误:

You can clear this error w/out a reboot:

  1. 在根 SVN 存储库中识别(或创建)一个目录,该目录不属于失败提交的一部分.

  1. Identify (or create) a directory in the root SVN repository that was not a part of the failed commit.

在第 1 步的目录中创建一个新文件.

Create a new file in the directory from step 1.

提交新文件(和目录,如果在步骤 1 中创建).因为该文件是新文件,所以它不会与之前的提交发生冲突,并且可以更新服务器上的修订版本号.

Commit the new file (and directory if created in step 1). Because the file is new, it doesn't conflict w/the previous commit and can update the revision # on the server.

提交原始文件/目录.

删除新文件(如果在步骤 1 中创建,则删除目录).

Delete the new file (and directory if created in step 1).

提交整个树.

**步骤 5 &6 不是必需的,但我喜欢保持我的存储库整洁...

**Steps 5 & 6 aren't required, but I like to keep my repository tidy...

我经常收到这个错误 b/c SVN 在提交我的大文件的过程中经常出现错误,这反过来导致后续提交尝试写入被中断的修订版.

I get this error a lot b/c SVN frequently conks out in the middle of committing my large files, which in turn causes subsequent commits to try to write to the revision that was interrupted.

这篇关于无法提交到 Subversion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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