ui: add a test demonstrating a crash in `hg paths` stable
authorArseniy Alekseyev <aalekseyev@janestreet.com>
Fri, 09 Jun 2023 14:31:40 +0100
branchstable
changeset 50690 ae74a60ad583
parent 50689 a45460e235a2
child 50691 ba602ddcb296
ui: add a test demonstrating a crash in `hg paths`
tests/test-pullling-to-general-delta.t
--- a/tests/test-pullling-to-general-delta.t	Sat Jun 17 04:05:53 2023 +0200
+++ b/tests/test-pullling-to-general-delta.t	Fri Jun 09 14:31:40 2023 +0100
@@ -178,6 +178,15 @@
 -------------------------
 
   $ cp -R client client-forced
+  $ hg -R client-forced paths --config paths.default:pulled-delta-reuse-policy=forced 2>&1 | "$PYTHON" $TESTDIR/filtertraceback.py
+  default = $TESTTMP/server
+  default:pulled-delta-reuse-policy = ** unknown exception encountered, please report by visiting
+  ** https://mercurial-scm.org/wiki/BugTracker
+  ** Python * (glob)
+  ** Mercurial Distributed SCM (*) (glob)
+  ** Extensions loaded: 
+  Traceback (most recent call last):
+  TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'int'
   $ hg -R client-forced pull --config paths.default:pulled-delta-reuse-policy=forced
   pulling from $TESTTMP/server
   requesting all changes