On Wed, Mar 24, 2010 at 8:48 AM, Nathaniel Manista <[email protected]> wrote:
> On Tue, Mar 23, 2010 at 5:20 PM, darkfrog <[email protected]> wrote:
>>
>> I am a long-time user of Google Code for hosting my open-source
>> projects, and have been developing in Scala for a while as well, but
>> recently switched from SVN to Mercurial and now instead of delivering
>> the source for my .scala code in the browser it prompts me to download
>> the file instead.
>>
>> My guess is that with Mercurial the mime-type is incorrectly
>> configured for Scala source files causing this occur.  My question is,
>> how can I fix this to make browsing the repository directly
>> reasonable?
>>
>> See:
>> http://sgine.googlecode.com/hg/src/test/scala/org/sgine/render/RenderTest.scala
>
> You're hitting the Mercurial server directly. There may be a way to browse
> the code there but in the meantime have you tried visiting
> http://code.google.com/p/sgine/source/browse/src/test/scala/org/sgine/render/RenderTest.scala?
> -Nathaniel

Mercurial doesn't have any support for setting the MIME type for a
file, so it's up to your browser to decide how to treat the file
extension. You could setup a mapping in your browser settings from
.scala to text/plain.

In SVN you can set the MIME type property on the server and force this
to be interpreted as a text file.

Nathan

-- 
You received this message because you are subscribed to the Google Groups 
"Project Hosting on Google Code" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code-hosting?hl=en.

Reply via email to