Friday, October 24, 2008

[SVN]设置ignore属性

1 设置本地,全局ignore属性
如果想在本地所有工作目录下屏蔽*.o, *.pyc这些临时文件, 可以修改"/etc/subversion/config" (针对所有用户)或是"~/.subversion/config"(仅针对当前用户):
添加, 或是去掉如下行的注释
[miscellany]
global-ignores = *.o *.pyc
这样不管在哪个工作目录, *.o 以及*.pyc都不会被列出来了.

2 设置server端,局部(每个目录可以不同)的ignore设置
进入你希望设置的工作目录,
svn propset svn:ignore "*.o" .
然后commit提交之后, 这个目录的svn:ignore属性便被设置成了*.o .

如果要同时设置多个ignore pattern, 比如 *.pyc *.pyd *.output的, 需要在不同pattern之间用回车隔开, 空格是不成的.所以可以用"\"符号输入多行
svn propset svn:ignore "*.pyc\
*.pyd \
*.o" .
或者写在文件里, 然后从文件导入:
svn propset svn:ignore -F .cvsignore .
或者调用外部editor:
svn propedit svn:ignore .

如果希望属性被递归的设置:
svn propset -R svn:ignore "*.o *.pyc" .

注意这个改动是server端可见的.也就是说别人的改动也会影响到你.

7 comments:

Anonymous said...

Hello mates, its fantastic paragraph concerning educationand entirely explained, keep it up all the time.


Also visit my webpage Magic Submitter Review Info

Anonymous said...

Very nice article, just what I was looking for.

Look at my blog: goji actives (http://www.woorimfc.org/)

Anonymous said...

Hello, all the time i used to check website posts here in the early hours in the break of day, since i like to
learn more and more.

Here is my homepage - green coffee weight loss

Anonymous said...

You must choose Cydia or your jailbreak will be ineffective.
Add the Source for the Frash application by tapping Sources, Edit,
and Include. Start the unlocking process by operating that
plan.

Here is my web site :: Cydia download ()

Anonymous said...

Hey! I just wanted to ask if you ever have any trouble with
hackers? My last blog (wordpress) was hacked and I ended
up losing a few months of hard work due to no backup.

Do you have any solutions to stop hackers?

Also visit my weblog: younique

Anonymous said...

Hi, I do think this is an excellent site. I stumbledupon it
;) I will revisit yet again since I book marked it.
Money and freedom is the greatest way to change, may you be rich and continue to help others.



Also visit my website ... Vietnam tours

Anonymous said...

best e cigarette, electronic cigarettes, electronic cigarettes, electronic cigarette starter kit, electronic cigarette reviews, e cigarette