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端可见的.也就是说别人的改动也会影响到你.

10 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...

I usually do not create many remarks, but after reading some of the
responses on "[SVN]设置ignore属性".
I do have 2 questions for you if it's allright. Could it be only me or does it give the impression like a few of the comments
look like they are coming from brain dead people?
:-P And, if you are writing on other places, I would like to
keep up with you. Could you post a list of all of all your social community sites
like your Facebook page, twitter feed, or linkedin profile?


Here is my web blog ... website maker

Anonymous said...

It's in reality a nice and helpful piece of info.
I'm glad that you shared this useful information with us.
Please keep us informed like this. Thanks for sharing.


Feel free to visit my homepage; www.shabsiarezi.com

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...

sexcam
hey there and thank you for your information – I've
certainly picked up anything new from right here.
I did however expertise a few technical points using this site, since I experienced to reload the
site many times previous to I could get it to load correctly.

I had been wondering if your web host is OK?
Not that I am complaining, but slow loading instances times will very frequently affect your placement in
google and can damage your quality score if advertising and marketing with Adwords.
Well I'm adding this RSS to my e-mail and can look out for much more of your respective fascinating content.
Ensure that you update this again soon. cam sex

Also visit my web-site spankingerfahrungen.wordpress.com

Anonymous said...

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