Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

wrong file types in Jazz source control properties

Hello

I just discovered that some of our Java source files (ending .java) have
the "application/binary" MIME type in the "Jazz source control"
properties tab. I do not (yet) know how this could happen or when it
happened. I thought of changing it into "text/plain". I've run a search
all over the workspace to find all textual files (*.java, *.xml, *.mf,
*.txt). In the search result, I can mark all files and select
"Team"->"Change file properties".

Is it a good idea to bulk change the file type for all those files in
one big action? Is there the risk to lose history, the file
accessibility or something else? Or is it highly recommended to perform
this action in order to boost Jazz performance and allow Jazz SCM to
deal with the text files in a proper manner?

Worst case would be to lose data, corrupt the repo or to create the need
for a rollback.

Thanks,
Stefan

0 votes



2 answers

Permanent link
Stefan Stern wrote:
Hello

I just discovered that some of our Java source files (ending .java) have
the "application/binary" MIME type in the "Jazz source control"
properties tab. I do not (yet) know how this could happen or when it
happened. I thought of changing it into "text/plain". I've run a search
all over the workspace to find all textual files (*.java, *.xml, *.mf,
*.txt). In the search result, I can mark all files and select
"Team"->"Change file properties".

Is it a good idea to bulk change the file type for all those files in
one big action? Is there the risk to lose history, the file
accessibility or something else? Or is it highly recommended to perform
this action in order to boost Jazz performance and allow Jazz SCM to
deal with the text files in a proper manner?

Worst case would be to lose data, corrupt the repo or to create the need
for a rollback.

After we developed the feature, we switched over our MIME types and
encodings in a similar manner. You should not be at risk of corrupting
any of your repository data or history.

JohnC
SCM Server

0 votes


Permanent link
There are two main properties of interest in the properties page, the mime type and the line delimiter. The mime type is used to help decide which merger to use for content merging, but it's not the only thing we also use the content type registry, and the line delimiter for text files allows teams on different platform to harmonize line endings in the repository (eg, we convert on check-in and on load to what you specify).

By default new resources get default values, but this was only added later after beta2. You can bulk update these values without any fear of data loss. We check that if you want delimiters of Platform and during the conversion we find inconsistent line endings we stop.

Jean-Michel
Jazz Source Control Team

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 24 '08, 3:07 a.m.

Question was seen: 4,472 times

Last updated: Jun 12 '13, 6:47 a.m.

Confirmation Cancel Confirm