Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-2377

Windows Linebreaks are replaced with Unix breaks on "Discard Hunk" click

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • 1.6.5
    • Mercurial
    • Windows 7 x64
      Mercurial Distributed SCM (version 3.0+317-1ab30e9ba0fc)

    • Severity 2 - Major

    Description

      Steps to reproduce:
      1. Open mercurial repository which has file with Windows line breaks ('\r\n'). For example repository https://bitbucket.org/pypy/pypy has such file rpython\translator\c\src\stacklet\switch_x64_msvc.asm
      2. Make some change in file with Windows line breaks
      3. Open Source Tree and press "Discard Hunk"

      Actual result: Hunk is discarded but all line breaks are replaced with Unix breaks ('\n')

      Expected result: file switch_x64_msvc.asm is restored to it's original state.

      Attachments

        1. changed_file_2.png
          changed_file_2.png
          112 kB
        2. changed_file_1.png
          changed_file_1.png
          119 kB

        Activity

          People

            Unassigned Unassigned
            47868b3d11ed Sergey Kozyr
            Votes:
            42 Vote for this issue
            Watchers:
            23 Start watching this issue

            Dates

              Created:
              Updated: