尽管 propset svn:ignore,SVN 只是不会忽略文件夹 [英] SVN just won't ignore a folder, despite propset svn:ignore

查看:34
本文介绍了尽管 propset svn:ignore,SVN 只是不会忽略文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Linux 中运行的 SVN 工作副本中获取文件夹 files.使用以下命令将该文件夹设置为忽略:

Take folder files, inside an SVN working copy, running in Linux. The folder was set to be ignored, with the commands:

  • svn propset svn:ignore * 'files'
  • svn propset svn:ignore 'default/files'
  • 和其他一些组合,所有有效的AFAIK

然而,设置并没有踢它.如果使用桌面客户​​端(即 Mac OS 上的 Cornerstone)访问存储库,则该文件夹会正确报告为已忽略.

However, the setting just doesn't kick it. If the repository is accessed with a dektop client (ie Cornerstone on Mac OS) the folder is correctly reported as ignored.

我在这里真的很难受.

谢谢.

为我清除的答案在此评论中:
如果文件已经在版本控制之下,它们将永远不会被忽略.

推荐答案

如果你想忽略一个目录 files,你需要在 svn propset svn:ignore files 上它的 PARENT 目录,而不是目录本身.

If you want to ignore a directory files, you need to svn propset svn:ignore files on its PARENT directory, not the directory itself.

例如

# your directory structure is this:
# workingCopy
# workingCopy/parent
# workingCopy/parent/subfolder
# to ignore subfolder do this:
svn propset svn:ignore subfolder workingCopy/parent

编辑

如果此文件夹中存在受版本控制的文件,即使该文件夹被忽略,Subversion 也不会忽略它们.您需要将它们从版本控制中删除(即 svn delete),然后它们将被忽略.

Edit

If there are files within this folder that are under version control, Subversion will NOT ignore them even if the folder is ignored. You will need to remove them from version control (i.e. svn delete) and then they will be ignored.

受版本控制的文件优先于可能包含它的任何忽略列表.

A file being under version control takes precedence over any ignore lists that may include it.

这篇关于尽管 propset svn:ignore,SVN 只是不会忽略文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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