Skip to content
  • Georges Racinet's avatar
    WebIDE: preserving line endings for Mercurial repositories · b839ac7b34ea
    Georges Racinet authored
    We're simply using the new `hg_preserve_line_endings` option when
    appropriate.
    
    Of course we don't want to affect only editing done in the UI, because
    the editor normalizes blindly to Unix-style line endings and not
    file uploads (assumed to be the final form and can be binary).
    
    The blob URL condition is really the one to use to make that difference
    between file uploads and editing in the UI: file uploads work in two
    steps: once the file is sent to the server, it is referenced by
    a path starting with `blob:`.
    b839ac7b34ea