diff tests/test-import.t @ 17712:c4717f44c1f1

fancyopts: don't show a traceback on invalid integer values
author Idan Kamara <idankk86@gmail.com>
date Mon, 08 Oct 2012 15:35:16 +0200
parents 6ef3107c661e
children 76b69cccb07a
line wrap: on
line diff
--- a/tests/test-import.t	Wed Oct 03 22:09:18 2012 +0200
+++ b/tests/test-import.t	Mon Oct 08 15:35:16 2012 +0200
@@ -602,6 +602,9 @@
   $ echo a > a
   $ hg ci -Am t
   adding a
+  $ hg import -p foo
+  abort: invalid value 'foo' for option -p, expected int
+  [255]
   $ hg import -p0 - << EOF
   > foobar
   > --- a	Sat Apr 12 22:43:58 2008 -0400