AnkhSvn 不会将文件添加到 SVN
这是一个已知问题 - 当使用 Ankh 添加文件时,它们并没有真正添加到 SVN。很多时候这会引起问题,例如当稍后通过 TortoiseSvn 提交时却发现丢失的文件,或者在创建补丁时。
是否有解决方法,或者有计划在未来的 Ankh 版本中解决此问题?
编辑 - 澄清一下,当我使用 Ankh 提交时,文件确实被添加了。但是,如果未使用 Ankh 完成提交,则不会添加文件(与其他确实保留的 SVN 操作不同)。
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.
Is there a workaround, or some plans to fix this is a future Ankh release?
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不会说这是一个“已知问题”,因为它首先不是 AnkhSVN 中的问题:
首先,当您提交“新”文件时,它们会及时添加以进行提交。 “新”状态与“添加”状态的原因是,它使重命名/移动变得更容易/更便宜,这对于新文件来说很常见。
当您转到“工具”->“选项->源代码控制 -> Subversion 环境,有一个复选框“直接将新文件添加到 Subversion”。这将立即自动添加新文件,而不是给予它们“新”状态。
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.
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.