1. Yuya Nishihara
  2. thg-work

Commits

Yuya Nishihara  committed 7935bb6 Obsolete Draft

filectxactions: save files in working-copy line endings (fixes #3696)

Most users won't be concerned about line endings in repository.

  • Participants
  • Parent commits 3aa42c0
  • Successor commits d8750d1
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/filectxactions.py

View file
  • Ignore whitespace
                 ";;".join(extfilter))
             if not result:
                 continue
+            # checkout in working-copy line endings, etc. by --decode
             cmdlines.append(hglib.buildcmdargs(
-                'cat', fd.canonicalFilePath(), rev=fd.rev(), output=result))
+                'cat', fd.canonicalFilePath(), rev=fd.rev(), output=result,
+                decode=True))
 
         if cmdlines:
             self._runCommandSequence(cmdlines)