comparison tests/test-eol.t @ 13505:9b617c56eb65 stable

eol: do not abort on parse error Handle parse errors in the .hgeol similarly to how parse errors in the .hgtags file are handled: by issuing a warning. This allows the user to revert the file using 'hg revert' or 'hg update -C'.
author Martin Geisler <mg@aragost.com>
date Mon, 28 Feb 2011 15:46:48 +0100
parents 85840c4ae2ad
children 43b3b761d9d1 c0b0b00f0279
comparison
equal deleted inserted replaced
13504:85840c4ae2ad 13505:9b617c56eb65
424 baz 424 baz
425 $ hg cat unix.txt 425 $ hg cat unix.txt
426 foo 426 foo
427 bar 427 bar
428 baz 428 baz
429
430 Test handling of a broken .hgeol file:
431
432 $ touch .hgeol
433 $ hg add .hgeol
434 $ hg commit -m 'clean version'
435 $ echo "bad" > .hgeol
436 $ hg status
437 warning: ignoring .hgeol file due to parse error at .hgeol:1: bad
438 M .hgeol
439 $ hg revert .hgeol
440 warning: ignoring .hgeol file due to parse error at .hgeol:1: bad
441 $ hg status
442 ? .hgeol.orig