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.win32ext=

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.


CategoryExtension