##// END OF EJS Templates
win32text: use reST syntax for literal blocks
Martin Geisler -
r9217:9cdb6964 default
parent child Browse files
Show More
@@ -7,30 +7,30 b''
7 7
8 8 '''perform automatic newline conversion
9 9
10 To perform automatic newline conversion, use:
10 To perform automatic newline conversion, use::
11 11
12 [extensions]
13 hgext.win32text =
14 [encode]
15 ** = cleverencode:
16 # or ** = macencode:
12 [extensions]
13 hgext.win32text =
14 [encode]
15 ** = cleverencode:
16 # or ** = macencode:
17 17
18 [decode]
19 ** = cleverdecode:
20 # or ** = macdecode:
18 [decode]
19 ** = cleverdecode:
20 # or ** = macdecode:
21 21
22 If not doing conversion, to make sure you do not commit CRLF/CR by accident:
22 If not doing conversion, to make sure you do not commit CRLF/CR by accident::
23 23
24 [hooks]
25 pretxncommit.crlf = python:hgext.win32text.forbidcrlf
26 # or pretxncommit.cr = python:hgext.win32text.forbidcr
24 [hooks]
25 pretxncommit.crlf = python:hgext.win32text.forbidcrlf
26 # or pretxncommit.cr = python:hgext.win32text.forbidcr
27 27
28 28 To do the same check on a server to prevent CRLF/CR from being
29 pushed or pulled:
29 pushed or pulled::
30 30
31 [hooks]
32 pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf
33 # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
31 [hooks]
32 pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf
33 # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
34 34 '''
35 35
36 36 from mercurial.i18n import _
General Comments 0
You need to be logged in to leave comments. Login now