Mercurial > hg
comparison tests/test-audit-path.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 | f2719b387380 |
children | 77973b6a7b0b |
comparison
equal
deleted
inserted
replaced
18226:fe67db018bd7 | 18227:720308f741cb |
---|---|
84 attack /tmp/test | 84 attack /tmp/test |
85 | 85 |
86 $ hg manifest -r4 | 86 $ hg manifest -r4 |
87 /tmp/test | 87 /tmp/test |
88 $ hg update -Cr4 | 88 $ hg update -Cr4 |
89 abort: *: $TESTTMP/target//tmp/test (glob) | 89 abort: *: '$TESTTMP/target//tmp/test' (glob) |
90 [255] | 90 [255] |
91 | 91 |
92 $ cd .. | 92 $ cd .. |