Mercurial > hg > mercurial-crew-with-dirclash
view contrib/win32/mercurial.ini @ 4508:0026ccc2bf23
Remove atomicfile class.
The interface provided by opener(atomic=True) is inherently unsafe:
if an exception is raised in the code using the atomic file, the
possibly incomplete file will be renamed to its final destination,
defeating the whole purpose of atomic files.
To get around this, we would either need some bad hacks involving
sys.exc_info (to make sure things work in except: blocks), or an
interface to say "file is complete; rename it".
This is the exact interface provided by atomictempfile. Since there
are no remaining users of the atomicfile class, just remove it.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 05 Jun 2007 19:55:27 -0300 |
parents | 2300632a3bc8 |
children | 778bab992732 ea7b982b6c08 |
line wrap: on
line source
; System-wide Mercurial config file. To override these settings on a ; per-user basis, please edit the following file instead, where ; USERNAME is your Windows user name: ; C:\Documents and Settings\USERNAME\Mercurial.ini [ui] editor = notepad ; By default, we try to encode and decode all files that do not ; contain ASCII NUL characters. What this means is that we try to set ; line endings to Windows style on update, and to Unix style on ; commit. This lets us cooperate with Linux and Unix users, so ; everybody sees files with their native line endings. [extensions] ; The win32text extension is available and installed by default. It ; provides built-in Python hooks to perform line ending conversions. ; This is normally much faster than running an external program. hgext.win32text = [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: