From 33de65a309f3fead38414ff95181105fe535d78d Mon Sep 17 00:00:00 2001 From: Jun Wu Date: Mon, 11 Feb 2019 13:37:59 -0800 Subject: [PATCH] test-hgsql-hggit: demostrate bytearray encoding error Summary: This is caused by D13516212, and not covered by tests. Reviewed By: DurhamG, StanislavGlebik Differential Revision: D14025817 fbshipit-source-id: 8a529085c40c5d2ae17ccf3de1ccea22c8d7dbd2 --- tests/test-hgsql-hggit.t | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/test-hgsql-hggit.t diff --git a/tests/test-hgsql-hggit.t b/tests/test-hgsql-hggit.t new file mode 100644 index 0000000000..157aeea873 --- /dev/null +++ b/tests/test-hgsql-hggit.t @@ -0,0 +1,34 @@ + $ . "$RUNTESTDIR/hgsql/library.sh" + $ . "$RUNTESTDIR/hggit/testutil" + $ shorttraceback + $ enable lz4revlog + + $ git init a-git + Initialized empty Git repository in $TESTTMP/a-git/.git/ + $ cd a-git + +Make "a" compressable + + >>> open("a", "w").write("0\n" * 5000) + $ git add a + $ git commit -m a + [master (root-commit) *] a (glob) + 1 file changed, 5000 insertions(+) + create mode 100644 a + +Setup an hgsql repo + + $ cd $TESTTMP + $ initserver a-hg a-hg + $ cd a-hg + +Pull from git + + $ hg pull $TESTTMP/a-git + pulling from $TESTTMP/a-git + importing git objects into hg + transaction abort! + rollback completed + ProgrammingError: Failed processing format-parameters; 'CustomConverter' object has no attribute '_bytearray_to_mysql' + [255] +