changeset 42078:50b69c08651b

tests: demonstrate broken pull of "ffffffffffff" revision Differential Revision: https://phab.mercurial-scm.org/D6214
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 05 Apr 2019 11:22:26 -0700
parents b8c2dc367cc3
children fcd7a91dec23
files tests/test-pull.t
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-pull.t	Fri Apr 05 11:12:08 2019 -0700
+++ b/tests/test-pull.t	Fri Apr 05 11:22:26 2019 -0700
@@ -75,6 +75,13 @@
   abort: unknown revision 'xxxxxxxxxxxxxxxxxx y'!
   [255]
 
+Test pull of working copy revision
+BROKEN: should give a better error message
+  $ hg pull -r 'ffffffffffff'
+  pulling from http://foo@localhost:$HGPORT/
+  abort: b2a_hex() argument 1 must be string or buffer, not None!
+  [255]
+
 Issue622: hg init && hg pull -u URL doesn't checkout default branch
 
   $ cd ..