Home » Eclipse Projects » Subversive » How to make SVN ignore everything in the "target" directory?
| | |
Re: How to make SVN ignore everything in the "target" directory? [message #522591 is a reply to message #522492] |
Tue, 23 March 2010 09:30 |
Mauro Molinari Messages: 285 Registered: July 2009 |
Senior Member |
|
|
Il 22/03/2010 20.07, David M. Karr ha scritto:
> That doesn't help, as "add to svn:ignore..." is insensitive when I
> right-click on "target". I get the same with the subdirectory of
> "target", which is "test-classes". The subdirectory of that, named
> "config" is the first entry in the tree which has a "?" on it in the
> Package Explorer, indicating it's not an element yet. When I right-click
> that, I do get the option to add that to "svn:ignore", but this bothers
> me. Does that mean that any element in the entire project which has a
> file name with "config" in it will be ignored? That's not what I need.
> This ability to ignore certain elements needs the ability to specify the
> "context" of the element, being what directory the element is in. I
> simply want to ignore everything in the "target" directory tree. This
> seems to be a hard thing to do.
Well, I haven't worked with SVN instensively, but I can tell you my
experience with CVS.
When you "ignore" a resource, using the default settings only *that*
resource is ignored, that is just the selected "config" subdirectory you
right-clicked on will be ignored, not all files named "config".
The fact that on your "target" directory there is not the "ignore"
option may mean that "target" is already in the repository. So, you
first have to remove it from the repository, then, when it is marked
with "?" (which means: not yet in the repository), you can specify to
ignore it, so that Eclipse won't show it as an outgoing change every
time you do a synchronize operation and won't let you commit it to the
repository.
HTH.
Mauro.
|
|
|
Re: How to make SVN ignore everything in the "target" directory? [message #522815 is a reply to message #522591] |
Wed, 24 March 2010 00:20 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
Expecting SVN to be like CVS is very intuitive and very misleading. It
isn't at all.
Greyed out svn:ignore is one of the many SVN nightmares. Probably caused
by attempting to ignore something that already exists. You probably need
to use TortoiseSVN which at least shows where you are and
maybe helps you a little bit. Expect to have a very learning experience.
Regards
Ed Willink
On 23/03/2010 09:30, Mauro Molinari wrote:
> Il 22/03/2010 20.07, David M. Karr ha scritto:
>> That doesn't help, as "add to svn:ignore..." is insensitive when I
>> right-click on "target". I get the same with the subdirectory of
>> "target", which is "test-classes". The subdirectory of that, named
>> "config" is the first entry in the tree which has a "?" on it in the
>> Package Explorer, indicating it's not an element yet. When I right-click
>> that, I do get the option to add that to "svn:ignore", but this bothers
>> me. Does that mean that any element in the entire project which has a
>> file name with "config" in it will be ignored? That's not what I need.
>> This ability to ignore certain elements needs the ability to specify the
>> "context" of the element, being what directory the element is in. I
>> simply want to ignore everything in the "target" directory tree. This
>> seems to be a hard thing to do.
>
> Well, I haven't worked with SVN instensively, but I can tell you my
> experience with CVS.
> When you "ignore" a resource, using the default settings only *that*
> resource is ignored, that is just the selected "config" subdirectory you
> right-clicked on will be ignored, not all files named "config".
>
> The fact that on your "target" directory there is not the "ignore"
> option may mean that "target" is already in the repository. So, you
> first have to remove it from the repository, then, when it is marked
> with "?" (which means: not yet in the repository), you can specify to
> ignore it, so that Eclipse won't show it as an outgoing change every
> time you do a synchronize operation and won't let you commit it to the
> repository.
>
> HTH.
> Mauro.
|
|
| |
Goto Forum:
Current Time: Tue Apr 23 06:29:58 GMT 2024
Powered by FUDForum. Page generated in 0.04172 seconds
|