Mercurial > hg-stable
diff 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 |
line wrap: on
line diff
--- a/tests/test-dispatch.t Sun Jan 06 04:04:44 2013 +0100 +++ b/tests/test-dispatch.t Mon Jan 07 02:00:29 2013 +0100 @@ -46,6 +46,12 @@ $ cd "$TESTTMP" +OSError ... and with filename even when it is empty + + $ hg -R a archive '' + abort: No such file or directory: '' + [255] + #if no-outer-repo No repo: