Differences between revisions 5 and 6
Revision 5 as of 2007-01-19 16:38:55
Size: 1325
Editor: 58x157x150x12
Comment:
Revision 6 as of 2008-01-03 10:35:18
Size: 1341
Editor: abuehl
Comment: +cat
Deletions are marked like this. Additions are marked like this.
Line 50: Line 50:
CategoryExtension CategoryExtension CategoryWindows

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.


CategoryExtension CategoryWindows

Win32TextExtension (last edited 2010-10-25 18:49:17 by SteveBorho)