You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Cecil Westerhof <Ce...@decebal.nl> on 2011/03/22 19:34:30 UTC
recursive propedit
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?
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Re: recursive propedit
Posted by David Weintraub <qa...@gmail.com>.
On Tue, Mar 22, 2011 at 2:34 PM, Cecil Westerhof <Ce...@decebal.nl> wrote:
> 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.
Each and every directory in Subversion can be thought of its own
module, so there's no real way for Subversion to know that
foo/bar/barfoo is a directory in module /foo/bar, or a another
separate module module.
That means there's no way for Subversion to know how to handle
properties that can affect an entire directory tree. Plus, it would be
difficult to know exactly what parent directory is affecting a child
directory.
For yourself, you can setup a global-ignores that resides in the
$HOME/.subversion/config file. That will apply to all working
directories in all repositories, but only to you on that particular
system (unless your $HOME directory is auto-mounted).
Remember that ignoring won't prevent it from being added to the
repository. It just makes it harder to accidentally add it to the
repository.
There are two work arounds:
1). Create a trigger that requires a svn:ignore property on any new
directories. You don't put it on, it won't commit the file.
2). You can also have a trigger that bans certain file names. For
example, I ban having a directory name "target" in our repository.
This prevents users from adding Maven built artifacts to our
repository.
--
David Weintraub
qazwart@gmail.com
Re: recursive propedit
Posted by Cecil Westerhof <Ce...@decebal.nl>.
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
RE: recursive propedit
Posted by Bob Archer <Bo...@amsi.com>.
> 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?
BOb