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 148479 - Add to source control doesn't use Add As Binary
Summary: Add to source control doesn't use Add As Binary
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: ClearCase (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-26 13:09 UTC by ats37
Modified: 2008-09-26 13:09 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 ats37 2008-09-26 13:09:10 UTC
I'm using the Netbeans 6.5 beta (Build 200808111757) under Sun'd JDK 1.6.0_02 on Windows XP, with a snapshot view.

When I multi-select a mixture of files (some text, some binary) and select Add To Source Control, the resulting window
has "Add As Text" in the Action dropdown against all the entries; even though some files are common binary types (e.g.
JPEG or GIF images) they still appear with Add As Text.  I haven't gone back and checked, but I'm pretty sure when I've
done similar operations in the past with CVS/SVN these file types default to being added as binary, and it would be nice
if that were the case here as well.

Having said that, I notice that even if I leave everything on Add As Text or deliberately select Add As Binary for a
text file, in the Clearcase output window the "Created element ..." lines still have "(type "text_file")" and "(type
"file")" as appropriate anyway, which make me wonder why the Action dropdown makes the distinction?  It seems to me that
the issued 'cleartool mkelem' command uses the default automatic file typing anyway, rather than passing a -eltype
parameter based on the dropdown's value.  In which case, wouldn't "Add"/"Do Not Add" be sufficient?