Mercurial > hg-stable
view tests/test-issue352 @ 10203:6e26e3c2083f stable
patch: explicitely close input patch files when leaving
If applydiff() raises an exception, the opened patch file is kept alive in the
exception context. If it is a temporary file (for instance supplied by import
command with stdin input), Windows cannot clean it up.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 03 Jan 2010 19:47:07 +0100 |
parents | 1de6e7e1bb9f |
children |
line wrap: on
line source
#!/bin/sh # http://mercurial.selenic.com/bts/issue352 "$TESTDIR/hghave" eol-in-paths || exit 80 hg init foo cd foo A=`printf 'he\rllo'` echo foo > "$A" hg add hg ci -A -m m rm "$A" echo foo > "hell o" hg add hg ci -A -m m echo foo > "$A" hg debugwalk exit 0