Debian Codegraph @

doc/html/ext-win32text.html

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" />
7 <title>win32text</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="win32text">
12 <span id="ext-win32text"></span>
13 <h1 class="title">win32text</h1>
14
15 <div class="contents htmlonly topic" id="contents">
16 <p class="topic-title"><a class="reference internal" href="#top">Contents</a></p>
17 <ul class="simple">
18 <li><a class="reference internal" href="#description" id="toc-entry-1">Description</a></li>
19 </ul>
20 </div>
21 <p>perform automatic newline conversion (DEPRECATED)</p>
22 <div class="section" id="description">
23 <h1><a class="toc-backref" href="#contents">Description</a></h1>
24 <dl class="docutils">
25 <dt>Deprecation: The win32text extension requires each user to configure</dt>
26 <dd><p class="first">the extension again and again for each clone since the configuration
27 is not copied when cloning.</p>
28 <p class="last">We have therefore made the <tt class="docutils literal">eol</tt> as an alternative. The <tt class="docutils literal">eol</tt>
29 uses a version controlled file for its configuration and each clone
30 will therefore use the right settings from the start.</p>
31 </dd>
32 </dl>
33 <p>To perform automatic newline conversion, use:</p>
34 <pre class="literal-block">
35 [extensions]
36 win32text =
37 [encode]
38 ** = cleverencode:
39 # or ** = macencode:
40
41 [decode]
42 ** = cleverdecode:
43 # or ** = macdecode:
44 </pre>
45 <p>If not doing conversion, to make sure you do not commit CRLF/CR by accident:</p>
46 <pre class="literal-block">
47 [hooks]
48 pretxncommit.crlf = python:hgext.win32text.forbidcrlf
49 # or pretxncommit.cr = python:hgext.win32text.forbidcr
50 </pre>
51 <p>To do the same check on a server to prevent CRLF/CR from being
52 pushed or pulled:</p>
53 <pre class="literal-block">
54 [hooks]
55 pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf
56 # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
57 </pre>
58 </div>
59 </div>
60 </body>
61 </html>