Commits

Yuya Nishihara committed d8750d1

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

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

Comments (0)

Files changed (1)

tortoisehg/hgqt/filectxactions.py

                 ";;".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)