##// END OF EJS Templates
man 5 hgrc implied you need to use external tools to do CRLF translation....
Jesse Glick -
r5678:d3909674 default
parent child Browse files
Show More
@@ -124,21 +124,26 b' decode/encode::'
124
124
125 NOTE: the tempfile mechanism is recommended for Windows systems,
125 NOTE: the tempfile mechanism is recommended for Windows systems,
126 where the standard shell I/O redirection operators often have
126 where the standard shell I/O redirection operators often have
127 strange effects. In particular, if you are doing line ending
127 strange effects and may corrupt the contents of your files.
128 conversion on Windows using the popular dos2unix and unix2dos
129 programs, you *must* use the tempfile mechanism, as using pipes will
130 corrupt the contents of your files.
131
128
132 Tempfile example:
129 The most common usage is for LF <-> CRLF translation on Windows.
130 For this, use the "smart" convertors which check for binary files:
133
131
132 [extensions]
133 hgext.win32text =
134 [encode]
134 [encode]
135 # convert files to unix line ending conventions on checkin
135 ** = cleverencode:
136 **.txt = tempfile: dos2unix -n INFILE OUTFILE
137
138 [decode]
136 [decode]
139 # convert files to windows line ending conventions when writing
137 ** = cleverdecode:
140 # them to the working dir
138
141 **.txt = tempfile: unix2dos -n INFILE OUTFILE
139 or if you only want to translate certain files:
140
141 [extensions]
142 hgext.win32text =
143 [encode]
144 **.txt = dumbencode:
145 [decode]
146 **.txt = dumbdecode:
142
147
143 defaults::
148 defaults::
144 Use the [defaults] section to define command defaults, i.e. the
149 Use the [defaults] section to define command defaults, i.e. the
General Comments 0
You need to be logged in to leave comments. Login now