Godard Bernard wrote:
> Hi,
>
> I am having a hard time configuring subversion to ignore certain
> directories:
>
> I am under the root of my project which is already committed to the SVN
> repository (there is a .svn directory)
>
> % perfogtc_at_russel /users/perfogtc/ESSAIS
>> ls
> CAL COR DMT ESS JA2 Matrice_CAL Matrice_DMT PHR1A PIC SMO
> UnitsMerge.dico config_MYR config_PHR config_PRO config__OBSOLETE
> % perfogtc_at_russel /users/perfogtc/ESSAIS
>> svn status
> ? COR
> ? DMT
> ? config_PRO
> ? Matrice_DMT
> ? ESS
> ? config_MYR
> ? SMO
> ? CAL
> ? UnitsMerge.dico
> ? config__OBSOLETE
> ? Matrice_CAL
> ? PHR1A
> ? PIC
> ? JA2
> ? config_PHR
> M .
>
> I want to ignore all the directories which match these patterns relative
> to my current direcory:
> ?*/[0-9]*_*/config
> ?*/[0-9]*_*/config_old
> ?*/[0-9]*_*/exec
> ?*/[0-9]*_*/exec_old
> However I do not want to ignore
> ./config
> DMT/config
> CAL/config
> ESS/config
> ...
>
> I have tried the following command:
> svn propset svn:ignore "?*/[0-9]*_*/exec_old ?*/[0-9]*_*/config_old
> ?*/[0-9]*_*/exec ?*/[0-9]*_*/config" .
> But this doesn't do what I want (when I do a a svn add command the
> directories I want to ignore are scheduled to be added).
>
> Can someone please tell me what I should do to have svn ignore these
> directories?
>
> Thank you,
Ignores are only on the direct children on the directory with the svn:ignore
property. So you can't have an svn:ignore at the top level of your directory
structure, you need to have svn:ignore on each directory with files or child
directories you want to ignore.
Also, using propedit is better then propset with svn:ignore given that you want
each file to be on a separate line.
Blair
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-23 18:49:37 CEST