changeset 42077:b8c2dc367cc3

tests: demonstrate broken `hg convert` if "ffffffffffff" is in description Differential Revision: https://phab.mercurial-scm.org/D6213
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 05 Apr 2019 11:12:08 -0700
parents f46c1a9b1bfe
children 50b69c08651b
files tests/test-convert-hg-source.t
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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