删除.svn/pristine的内容是否安全? [英] Is it safe to delete the contents of .svn/pristine?

查看:2195
本文介绍了删除.svn/pristine的内容是否安全?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用从存储库中签出的大型应用程序,该应用程序的大部分位于.svn/pristine文件夹中.据我了解,原始文件夹包含我的workingCopy目录中文件的副本

I'm working with a large application I've checked out from my repository, the bulk of this app is in the .svn/pristine folder. From what I understand, the pristine folder contains copies of the files in my workingCopy directory

话虽这么说

  • 可以删除这些文件吗?
  • 我真的需要它们吗?

我已经备份了文件,无意还原.获得的额外空间也将大大减少我的编译时间.

I have my files backed up already and no intention to revert. The extra space gained would dramatically cut my compile time as well.

编辑

我现在了解到,在.svn中手动更改任何内容都可能会破坏我的workingCopy.

I now understand that changing anything manually inside .svn will likely break my workingCopy.

我需要找到一种方法来减小我的workingCopy的大小.在TortoiseSVN中,有一个Cleanup - Delete unversioned files and folders,它删除工作副本中所有生成的文件".也许这会在不破坏我的应用程序的情况下摆脱那些文件?

I need to find a way to reduce the size of my workingCopy. In TortoiseSVN, there is a Cleanup - Delete unversioned files and folders, which "removes all generated files in your working copy". Perhaps this would get rid of those files without breaking my application?

欢呼

推荐答案

  • 您不得在工作副本中手动触摸目录.svn.客户端操作需要该目录.

    • You must not touch the directory .svn in your working copy manually. The directory is required for client-side operations.

      .svn目录仅用于客户端操作存储WC文件的工作副本元数据和原始副本,它必须存在于每个SVN工作副本中,但不能存在于SVN存储库中.将其存储在Subversion存储库中可能会导致客户端错误.

      The .svn directory stores working copy metadata and pristine copy of WC files for client-side operations only, it must exist in each SVN working copy but not in SVN repository. Storing it in Subversion repository can lead to errors on the client side.

      换句话说,您不得在存储库中存储目录.svn.如果您在存储库中有此目录,则说明有人错误地提交了该目录.从最新版本中删除它,或者通过使用svndumpfilter工具将其过滤掉.

      In other words, you must not store the directory .svn in the repository. If you have this directory in the repository then someone has mistakenly committed it; remove it from the latest revision or remove it completely by filtering it out using svndumpfilter tool.

      请参见 SVNBook | Subversion工作副本:

      工作副本还包含一些额外的文件,这些文件已创建并维护 通过Subversion来帮助它执行这些命令.特别是, 每个工作副本都包含一个名为.svn的子目录,也称为 工作副本的管理目录.中的文件 管理目录帮助Subversion识别出您的哪个 版本文件包含未发布的更改以及哪些文件已过期 关于他人工作的日期.

      A working copy also contains some extra files, created and maintained by Subversion, to help it carry out these commands. In particular, each working copy contains a subdirectory named .svn, also known as the working copy's administrative directory. The files in the administrative directory help Subversion recognize which of your versioned files contain unpublished changes, and which files are out of date with respect to others' work.

    • 选项清理-删除未版本控制的文件和文件夹" TortoiseSVN 中的文件将删除工作副本中未版本控制的文件.例如,那些通过svn:ignore属性忽略的文件,即在运行构建或调试后生成的文件.

    • The option "Cleanup - Delete unversioned files and folders" in TortoiseSVN will remove unversioned files in your working copy. E.g., those files that were ignored via svn:ignore property, files generated after you run build or debug.

      我想您将大型二进制文件存储在存储库/工作副本中.我认为您无需重新组织SVN信息库就无法解决工作副本大小问题.

      I guess that you store large binaries in your repository / working copy. I don't think that you'll be able to solve the working copy size issue without reorganizing your SVN repository.

      这篇关于删除.svn/pristine的内容是否安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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