1188
Comment: Add win32extension page
|
1325
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
''Author: Bryan O'Sullivan'' |
|
Line 15: | Line 17: |
hgext.win32ext= | hgext.win32text= |
Line 42: | Line 44: |
=== Usage === This extension doesn't require user interaction to work. ---- CategoryExtension |
Win32 extension
This extension is currently being distributed along with Mercurial.
Author: Bryan O'Sullivan
Overview
This extension provides automatic line ending conversion for Mercurial repositories in a Windows platform.
It avoids the problems due to different line ending styles when there's mixed users of windows and other platforms. The change in line convention could lead to false modification of files and is traditionally managed by unix2dos and dos2unix scripts.
Configuration
Enable the extension in the configuration file (hgrc):
[extensions] hgext.win32text=
Optionally set the encode and decode methods:
[encode] # Encode files that don't contain NUL characters. # ** = cleverencode: # Alternatively, you can explicitly specify each file extension that # you want encoded (any you omit will be left untouched), like this: # *.txt = dumbencode: [decode] # Decode files that don't contain NUL characters. # ** = cleverdecode: # Alternatively, you can explicitly specify each file extension that # you want decoded (any you omit will be left untouched), like this: # **.txt = dumbdecode:
Usage
This extension doesn't require user interaction to work.