Mercurial > hg-stable
comparison tests/test-dispatch.t @ 18227:720308f741cb
dispatch: show empty filename in OSError aborts
Mercurial would sometimes exit with:
abort: No such file or directory
where str of the actual OSError exception was the more helpful:
[Errno 2] No such file or directory: ''
The exception will now always show the filename and quote it:
abort: No such file or directory: ''
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 07 Jan 2013 02:00:29 +0100 |
parents | fe67db018bd7 |
children | ef60083b5536 |
comparison
equal
deleted
inserted
replaced
18226:fe67db018bd7 | 18227:720308f741cb |
---|---|
44 a: no such file in rev 000000000000 | 44 a: no such file in rev 000000000000 |
45 [1] | 45 [1] |
46 | 46 |
47 $ cd "$TESTTMP" | 47 $ cd "$TESTTMP" |
48 | 48 |
49 OSError ... and with filename even when it is empty | |
50 | |
51 $ hg -R a archive '' | |
52 abort: No such file or directory: '' | |
53 [255] | |
54 | |
49 #if no-outer-repo | 55 #if no-outer-repo |
50 | 56 |
51 No repo: | 57 No repo: |
52 | 58 |
53 $ hg cat | 59 $ hg cat |