comparison tests/test-clone-stream.t @ 48990:d9ed7c5e915d stable

streamclone: avoid some obscure error in a corner case I don't really know how, but I ran into this error: $ hg clone --stream ssh://user@dummy/empty-repo local-empty-repo streaming all changes abort: unable to apply stream clone: unsupported format: [255] I think you need an empty list of requirements for this to happen, which is weird, but an obscure error like this is not exactly helpful either. Since this is the result of an encoding bug anyway, just fix it. Differential Revision: https://phab.mercurial-scm.org/D12402
author Valentin Gatien-Baron <vgatien-baron@janestreet.com>
date Thu, 24 Mar 2022 12:27:21 -0400
parents 4a8eff64860a
children 2f2682f40ea0
comparison
equal deleted inserted replaced
48989:d4b66dc500c5 48990:d9ed7c5e915d
815 [100] 815 [100]
816 816
817 $ killdaemons.py 817 $ killdaemons.py
818 818
819 #endif 819 #endif
820
821 Cloning a repo with no requirements doesn't give some obscure error
822
823 $ mkdir -p empty-repo/.hg
824 $ hg clone -q --stream ssh://user@dummy/empty-repo empty-repo2
825 $ hg --cwd empty-repo2 verify -q