svn propget svn:ignore .什么都不返回,但 svn 显然忽略了我的文件 [英] svn propget svn:ignore . returns nothing, but svn is obviously ignoring my files

查看:31
本文介绍了svn propget svn:ignore .什么都不返回,但 svn 显然忽略了我的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将现有的 iPhone 项目添加到 unfuddle.com 上的 subversion 帐户.

I'm trying to add an existing iPhone project to a subversion account on unfuddle.com.

除了一些被忽略的 .a 文件外,一切似乎都很顺利.我知道它们会被忽略,因为除非我使用 --no-ignore 标志,否则我看不到它们处于 svn 状态.

Everything seems smooth except for some .a files which are ignored. I know they are ignored because I don't see them in svn status unless I use the --no-ignore flag.

当我跑步时

  svn propget svn:ignore .

我没有输出.为了确保我没有疯,我跑了

I get no output. To make sure I wasn't crazy I ran

  svn propget --xml svn:ignore .

得到这个

<?xml version="1.0"?>
<properties>
</properties>

这意味着在 ignore 属性中没有条目?

Which means there are no entries in the ignore property?

如何找到这种忽略的来源?

How do I find where this ignore is coming from?

推荐答案

新的一天.头脑清醒.

感谢您的帮助,这无疑将我引向了正确的方向.

Thanks for the help, it certainly lead me in the right direction.

答案是 subversion 本身内置了一个默认的 global-ignore 列表,而不是配置文件,这是 *.a 忽略的来源.

The answer is there is a default global-ignore list that is built into subversion itself, not the config files, which was where the *.a ignore was coming from.

我的配置文件中的全局忽略如下所示:

The global ignores in my config file looked like this:

 #global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo
 # *.rej *~ #*# .#* .*.swp .DS_Store

我觉得这很好,因为我不想忽略任何事情.我错了,因为 subversion 强制执行其几乎没有记录的默认全局忽略.我把它改成了这个,注意'*.a'的排除

I figured this was fine, because I didn't want to ignore anything. I was wrong because then subversion enforces its scarcely documented default global-ignores. I changed it to this, note the exclusion of '*.a'

 global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.pyc *.pyo
  *.rej *~ #*# .#* .*.swp .DS_Store

此时*.a文件不再被忽略,我的.DS_Store文件仍然被忽略,一切正常.

At this point *.a files are no longer ignores, and my .DS_Store file is still ignored, and all is right in my world.

正如 GraemeF 所建议的,propget 不会检索 svn:ignore 的全局值.正如 Ether 所建议的,您可以通过显式命名来添加被忽略的文件.

As GraemeF suggested, propget does not retrieve global values for svn:ignore. As Ether suggested, you can add ignored files by naming them explicitly.

我找到的最佳链接在这里:http://svn.haxx.se/users/archive-2009-02/0725.shtml

The best link I found was here: http://svn.haxx.se/users/archive-2009-02/0725.shtml

这篇文章告诉我,如果在配置文件中未设置 global-ignores,则 global-ignores 有一个非空的默认值.

This post says to me that there is a non-empty default value for global-ignores that is used if global-ignores is not set in the config file.

这篇关于svn propget svn:ignore .什么都不返回,但 svn 显然忽略了我的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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