Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I get Crucible to display .rc2 files in changesets as text (rather than no content)?

We've noticed that when .rc2 files are included in the revision, nothing is displayed in the code review in Crucible, but it could just be displayed as a text file. Is it possible to change some setting to get it to show up?

1 answer

1 accepted

0 votes
Answer accepted
lpater Atlassian Team Nov 14, 2014

Hi Ruth,

Whether a file is considered binary or not, depends mostly on the SCM being used. The SCMs in turn usually determine this based on presence of non-printable characters in the file.

For SVN this depends on the "svn:mime-type" property of the file. Anything starting with 'text/' will be considered text. You can modify the default mime/types for files by extension, by editing the raw-mime.types file (see this knowledge base article).

Thanks for that tip! I will give it a try.

Ok, I found and edited that file appending 'rc rc2' on the end of the list of text/plain, restarted Crucible, but I still don't see it as text.

lpater Atlassian Team Nov 17, 2014

Are you using SVN? The binary-ness determination is done at indexing time - you might need to reindex the repository.

I'm using Git, I was hoping not to have to reindex (I avoid doing that at all costs because our repos are massive). I'll give it a shot sometime though, you're probably right that it needs to be done to see the change.

lpater Atlassian Team Nov 17, 2014

The setting I've mentioned above is only relevant for SVN, so no need to reindex. For git we determine whether the file is binary based on the results of the 'git diff' command. If git diff shows the file as binary, we consider it binary. You might be able to override git's diff behavior for files with specific extensions by creating a gitattributes file - see https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

My apologies - I was totally blowing over that and thought this was just a solution on the Crucible side of things. Thanks again - I'll check out those links you provided.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

114 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you