Double-clicking a binary file fails

Issue #33 resolved
Olivier Scherler
created an issue

Double-clicking a 'binary' file (like an image) in the file list fails to open it because {{{-[MYTask output]}}} of the {{{hg cat}}} command in {{{-[HgRevision getFileContents: error:]}}} tries to put the file content into an NSString.

It's easy to fix with the included patch (change {{{HgFile.contents}}} and {{{-[Hg[Uncommited]Revision getFileContents: error:]}}} to return NSData instead of NSString), but then {{{-[HgTempDir openDataInEditor: asFileNamed: error:]}}} tries to open the image with the user's preferred text editor, snif…

Comments (3)

  1. Log in to comment