Commits

Yuya Nishihara  committed 870e25d 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 a81ffb8

Comments (0)

Files changed (1)

File 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)