This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 76461 - automatically adding .cvsignore files to a subversion checkout and setting svn:ignore to ignore them
Summary: automatically adding .cvsignore files to a subversion checkout and setting sv...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks: 72404
  Show dependency tree
 
Reported: 2006-05-17 05:33 UTC by bwl
Modified: 2006-11-20 14:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bwl 2006-05-17 05:33:46 UTC
I'm trying the NetBeans 5.5 beta Subversion module.  I've found that NetBeans
has automatically created .cvsignore files throughout my source tree.  Its also
modified the svn:ignore property on folders so that they are ignored.  This is
quite inappropriate behaviour - as it is a Subversion source tree it certainly
should not be adding .cvsignore files.  And if it didn't add the unnecessary
files it would need to make unnecessary modifications to svn:ignore.
Comment 1 Tomas Stupka 2006-05-17 09:25:45 UTC
sorry, but i'm probably missing something and i'm not able to follow your
argumentation. could you please explain a bit deeper why do you think that's
inappropriate from the module to create .cvsignore files? which folders exactly
got a ignore list? because if it was the 'private' project folder - it's not
supposed to shared...
Comment 2 Peter Pis 2006-05-17 09:45:17 UTC
".cvsignore" files are added if project parent directories contain CVS metadata.
("CVS" folder(s)). So please examine your path. 
Comment 3 bwl 2006-05-18 00:14:08 UTC
Well, in my case I have a NetBeans project, for example, in a directory called
/ct/acct/bwatson/lms/trunk/conftool/docobj.  Thats the project I opened.
Now in /ct/acct/bwatson there is a CVS directory because I have several CVS
projects checked out there.  However, none of them are in /ct/acct/bwatson/lms.
 Are you saying that NetBeans traverses up the directory tree until it finds a
"CVS" directory, and then concludes that it should write .cvsignore files in any
child?  If so that seems highly inappropriate.  It should at least check whether
the CVS/Entries file indicates that the child directory is a CVS directory,
which it clearly isn't.

At any rate NetBeans has decided that the directory is a Subversion directory,
which is why it is performing Subversion commands.  That also should indicate
that writing CVS related files in the directory is inappropriate.

I'm quite happy to see NetBeans set the svn:ignore property to ignore the
"private" directory in nbproject.  I'm not so sure that it should be setting it
to ignore ".cvsignore" files.  They simply shouldn't be there as it is a
Subversion repository.
Comment 4 Tomas Stupka 2006-05-18 01:24:48 UTC
uups, it was very late at night for me when i was reading your issue, i even
typed .cvsignore in my answer, but i was still thinking about svn:ignore
proerties. now i see the point. thanks for the explanation
Comment 5 Maros Sandor 2006-07-27 13:07:38 UTC
We will try to workaround this. However, I would not recommend mixing versioning
systems like that. I mean, having a CVS checkout and inside this checkout have a
Subversion checkout.
Comment 6 _ hildo 2006-07-30 23:55:51 UTC
The issue isn't that the SVN working copy is inside the CVS working copy.  It's
that the parent directory contains both Subversion and CVS working copies (as
not all projects are using the single version control system).  So, something like

/usr/home/cvsWorkingDir  contains the CVS checked out source
/usr/home/svnWorkingDir  contains the SVN checked out source

This happens to me as well.  I don't know if it's adding the cvsignore files
because there's some cvs files in my home dir.  But it's not caused by having
the SVN checkout within a CVS checkout.  
Comment 7 Maros Sandor 2006-07-31 09:17:23 UTC
Yes, it is caused by the CVS folder (or .svn folder) in your home dir. Try to
remove it and run NetBeans.
Comment 8 Maros Sandor 2006-11-20 14:58:09 UTC
Versioning manager should now take care of this.