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 38068 - .#filename are not hidden
Summary: .#filename are not hidden
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2003-12-12 21:31 UTC by _ gtzabari
Modified: 2004-02-27 10:46 UTC (History)
2 users (show)

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 _ gtzabari 2003-12-12 21:31:12 UTC
dev build 200312111900

   In the old JavaCVS FS, .filename would be
hidden. Under the new VCS they show up with an
attribute of "Ignored" but they're still visible.
Comment 1 Martin Entlicher 2004-02-23 18:12:52 UTC
Under vcsgeneric the .* files were always visible, like in
LocalFileSystem.
You can always set "Ignored Files" property in order to filter some files.
.#filename files can always be deleted when not needed. They are in
general useful for diffs, etc.
Comment 2 _ gtzabari 2004-02-23 18:57:56 UTC
I understand that VCSGeneric never had this policy and that .#filename
have some limited uses but this is not user-friendly. We don't
generate .#filename for the sake of the user of the GUI. We do it for
backup purposes.

The average user does not wish for his display to get cluttered with
this stuff. If they really wish to diff against older versions of a
file, they use the DIFF command. Please reconsider.
Comment 3 Martin Entlicher 2004-02-23 22:03:07 UTC
Well, you know, I don't like much this kind of issues, since it's not
clear what's the right solution.

Personally, I like to see these files there, because I want to know
about them and when I do not need them, I delete them. Also these
files typically contain something that is not in cvs history (they are
created on cvs up -C, when there are conflicts, etc.) and therefore
it's handy to be able to select .#file.txt and file.txt and do
Tools->Diff.

But when users think that .#files should not be visible by default,
it's easy to hide them. We just need to find somehow that this is what
majority of our users want.
Comment 4 Jesse Glick 2004-02-24 18:22:07 UTC
+1 from me for hiding VCS detritus like this by default.

BTW Ant has a default exclude list which more or less translates to

"^(CVS|SCCS|vssver\\.scc|#.*#|%.*%|\\.(cvsignore|svn|DS_Store))$|^\\.[#_]|~$"

which is a pretty good compilation of commonly useless filenames on
different platforms.

Of course CVS integration already deals with 'CVS' folders specially,
and there might be reason to show .cvsignore files for now (since the
CVS integration module provides no intelligent support for working for
them, unlike e.g. Emacs' PCL-CVS mode).
Comment 5 arittner 2004-02-26 18:33:30 UTC
+1
Comment 6 Martin Entlicher 2004-02-27 10:46:41 UTC
It looks like there is a strong lobby for this issue :)
So I've set files beginning with ".#" as ignored by default:

/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/config/cvs.xml,v
 <--  cvs.xml
new revision: 1.31; previous revision: 1.30

It's done only in CVS profile. It will have effect on new CVS
filesystems only.