当我提交时 SVN 总是出错(Subclipse)

发布于 2024-09-05 12:57:04 字数 470 浏览 4 评论 0原文

我在我的服务器上安装了 svn,在家里安装了 Subclipse。我是唯一的开发人员,主要将其用于备份和版本控制功能。

每次我提交更改时,我都会得到八个:

Out Of date errors

或者

Tree conflicts

有时我什至删除文件,但它们不会在 svn 上删除,在目录层次结构中,只有最后一项会删除,所以我必须一次删除每个文件夹一个。

将来我该如何避免这些错误?

更新: 我遇到的另一个问题是,有时 Eclipse 似乎与服务器同步,因此当我重构文件名时,它会转到服务器并执行某些操作并让我等待,这很烦人。

为了清楚起见,这是一个典型的操作: 我可能会更改文件名,将文件移动到不同的文件夹,然后更改文件的内容。我选择“团队菜单”并单击“提交”。然后我得到上面所有这些错误。

I have setup svn on my server and Subclipse at home. I am the only developer and am mainly using it for the backup and versioning features.

Everytime I commit my changes I get eighter:

Out Of date errors

or

Tree conflicts

Sometimes I even delete files and they don't delete on svn, in a directory hierarchy only the very last item will delete so I have to delete each folder one at a time.

How do I avoid these errors in the future?

Update:
Another problem I am having is that sometimes eclipse seems to sync with the server so that when I refactor a filename it goes off to the server and does something and makes me wait, which is annoying.

And for clarity, this is a typical operation:
I might change a filename, move a file to a different folder then change the contents of a file. I select the 'Team menu' and click 'commit'. Then I get all these errors above.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

杀お生予夺 2024-09-12 12:57:04

你总是在修改文件之前先 svn update 吗?
这是强制性的。

删除的时候,你提交了删除吗?
否则只能在本地删除

Do you always svn update before modifying your files?
It is mandatory.

When deleting, you commit the deletion?
Otherwise, you only delete in local

緦唸λ蓇 2024-09-12 12:57:04

除了更新之外,您可能还需要关闭&重新打开项目以丢失从同步视图中删除的文件。

也不要尝试执行多次删除,或者在删除后、提交之前进行任何其他更改。

太棒了,不是吗。

Aside from an update, you might also need to close & reopen the project to lose deleted files from the Synchronization view.

Don't try to do more than one delete, or make any other changes after a delete, before committing, either.

Great, isn't it.

挽袖吟 2024-09-12 12:57:04

Peter是对的,至少据我所知,使用 Subclipse 删除目录树的唯一方法是删除内部目录,提交,更新,删除下一​​个,提交,更新等。我可能会遗漏一些东西,但至少存在用户不友好的问题,我不明白为什么不能一步删除目录。输错了包名然后才意识到是很糟糕的。

我不知道 subclipse 到底是如何达到这样的版本 1.6.x 的,特别是因为它是一个很好的插件......

Peter is right, at least as far as I know the only way to delete a directory tree with Subclipse is delete the inner directory, commit, update, delete next, commit, update, etc. I might be missing something but at the very least there's an user-unfriendliness problem, I don't see why one can't delete a directory in one step. Mistyping a package name and realising later is awful.

I don't know how on earth subclipse got to version 1.6.x like this, especially because it's otherwise a good plugin...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文