AnkhSvn不会将文件添加到SVN [英] AnkhSvn doesn't add files to SVN

查看:113
本文介绍了AnkhSvn不会将文件添加到SVN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个已知问题-使用Ankh添加文件时,它们实际上并没有真正添加到SVN中.很多时候,这已经引起了问题,例如,以后通过TortoiseSvn提交仅用于查找丢失的文件时,或者在创建补丁时.

This is a known issue - when files are added using Ankh, they are not really added to SVN. Many a times this has caused problems, for instance when committing later through TortoiseSvn only to find missing files, or when creating a patch.

是否有解决方法,或者有计划解决此问题的Ankh未来版本?

Is there a workaround, or some plans to fix this is a future Ankh release?

编辑-澄清一下,当我使用Ankh提交时,确实添加了文件.但是,如果未使用Ankh完成提交,则不会添加文件(与其他会继续执行的SVN操作不同).

Edit - to clarify, when I commit using Ankh, the files are really added. But if the commit is not done using Ankh, the files are not added (unlike other SVN operations which do carry over).

推荐答案

我不会说这是一个已知问题",因为首先它在AnkhSVN中不是问题:

I wouldn't say it's a "known issue", because it's not an issue in AnkhSVN in the first place:

首先,当您提交新"文件时,它们会在提交时及时添加.之所以使用新"状态而不是添加"状态,是因为它使重命名/移动变得更容易/更便宜,这在新文件中很常见.

First off all, when you commit the "new" files, they're added just in time for the commit. The reason for the "new" status vs the "added" status, is that it makes it easier/cheaper to do renames/moves, something that's very common for new files.

当您转到工具"->选项"->源代码控制"->"Subversion环境"时,会有一个复选框直接将新文件添加到Subversion".这将立即自动添加新文件,而不是赋予它们新"状态.

When you go to Tools -> Options -> Source Control -> Subversion Environment, there's a checkbox "Directly add new files to Subversion". This will automatically add new files right away, instead of giving them the "new" status.

这篇关于AnkhSvn不会将文件添加到SVN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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