[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: recursive propedit

From: Cecil Westerhof <Cecil_at_decebal.nl>
Date: Tue, 22 Mar 2011 21:53:53 +0100

Op dinsdag 22 mrt 2011 21:22 CET schreef Bob Archer:

>> I am executing:
>> svn propedit svn:ignore .
>>
>> But this works only on the current directory. I like to have it
>> work
>> on all the directories beneath the current directory also. And if
>> possible on the directories that will be created in the future.
>>
>> Is this possible?
>
> If you ignore a folder... you are also ignoring any contents or sub-folders of
> that folder.
>
> For example, if you have:
>
> /MyPath/Here/IngoreThis
>
> svn:ignore IgnoreThis
>
> as a property of the Here folder... the IgnoreThis and all its contents will
> be ignored. Or, is that not what you are asking?

No. In this case it is about ConTeXt. Normal source files are .tex, I
also use .inc and .per. Files that are generated are: .pdf, .log, .mpd
and .tuc. When I do a svn status, I do not want to see them. That is
why I have the following svn:ignore:
    Properties on '.':
      svn:ignore
        *.log
        *.mpd
        *.pdf
        *.tuc

This prevents the files to be shown from the current directory. But
these files in the sub-directories are shown. I would like those also
not to be shown.

And I found a solution. I made a file generatedFiles with:
generatedFiles
    *.log
    *.mpd
    *.pdf
    *.tuc

And then giving the command:
    svn propset svn:ignore --recursive --file generatedFiles .
does the trick.

When adding new directories, I just have to repeat the command.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Received on 2011-03-22 21:54:14 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.