Review Text File Extensions

Atlassian Crucible uses the text/plain attribute in the raw-mime.types file to identify the files in a code review that it can treat as text files. While Atlassian Crucible recognizes many extensions commonly associated with text files (.txt and .cpp, for example), consider reviewing the raw-mime.types file to ensure that it includes any special files you plan on adding to code reviews. For example, you might want to include log files (.log) and configuration files (.cfg) in code reviews as text files. If so, you need to add these extensions to the text/plain attribute in the raw-mime.types file as described in the following procedure.

To specify text file extensions in Atlassian Crucible:

  1. Locate the raw-mime.types file in the directory where you installed Atlassian Crucible.
  2. In the raw-mime.types file, locate the line that starts with text/plain. For example:
    text/plain asc txt java jsp asp cs idl cpp cxx c h pl pod py sh
  3. Add the extensions you need to this list.
  4. Save the raw-mime.types file.
  5. Restart Atlassian Crucible.

For more information, see your Atlassian Crucible documentation.

Note: AccuRev determines whether files without an extension are text or binary when you add them to a review or include them in a new review.