comparison tests/test-hook.t @ 41420:b6673e9bdcf6

dispatch: quote filename in IOError as well It's explicitly added for OSError at 720308f741cb "dispatch: show empty filename in OSError aborts". Let's do the same for IOError.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 26 Jan 2019 17:51:55 +0900
parents 89ba51c3e4f1
children f8443db3032e
comparison
equal deleted inserted replaced
41419:b5169e79c31c 41420:b6673e9bdcf6
688 $ echo "update.ne = python:`pwd`/nonexistent.py:testhook" >> .hg/hgrc 688 $ echo "update.ne = python:`pwd`/nonexistent.py:testhook" >> .hg/hgrc
689 $ echo "pre-identify.npmd = python:`pwd`/:no_python_module_dir" >> .hg/hgrc 689 $ echo "pre-identify.npmd = python:`pwd`/:no_python_module_dir" >> .hg/hgrc
690 690
691 $ hg up null 691 $ hg up null
692 loading update.ne hook failed: 692 loading update.ne hook failed:
693 abort: $ENOENT$: $TESTTMP/d/repo/nonexistent.py 693 abort: $ENOENT$: '$TESTTMP/d/repo/nonexistent.py'
694 [255] 694 [255]
695 695
696 $ hg id 696 $ hg id
697 loading pre-identify.npmd hook failed: 697 loading pre-identify.npmd hook failed:
698 abort: No module named repo! 698 abort: No module named repo!