tests: demonstrate broken `hg convert` if "ffffffffffff" is in description
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 05 Apr 2019 11:12:08 -0700
changeset 42077 b8c2dc367cc3
parent 42076 f46c1a9b1bfe
child 42078 50b69c08651b
tests: demonstrate broken `hg convert` if "ffffffffffff" is in description Differential Revision: https://phab.mercurial-scm.org/D6213
tests/test-convert-hg-source.t
--- a/tests/test-convert-hg-source.t	Fri Apr 05 11:08:17 2019 -0700
+++ b/tests/test-convert-hg-source.t	Fri Apr 05 11:12:08 2019 -0700
@@ -214,10 +214,14 @@
   $ hg ci -Aqm initial
   $ echo b > b
   $ hg ci -Aqm 'the previous commit was 1451231c8757'
+  $ echo c > c
+  $ hg ci -Aqm 'the working copy is called ffffffffffff'
 
   $ cd ..
+BROKEN: crashes when the "ffffffffffff" is encountered
   $ hg convert commit-references new-commit-references -q \
-  >     --config convert.hg.sourcename=yes
+  >     --config convert.hg.sourcename=yes 2>&1 | grep TypeError
+  TypeError: b2a_hex() argument 1 must be string or buffer, not None
   $ cd new-commit-references
   $ hg log -T '{node|short} {desc}\n'
   642508659503 the previous commit was c2491f685436