Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2007-01-17 21:18:45
Size: 1188
Comment: Add win32extension page
Revision 5 as of 2007-01-19 16:38:55
Size: 1325
Editor: 58x157x150x12
Comment:
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.


CategoryExtension

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