comparison tests/test-paths.t @ 47276:9cc9b4a25248

urlutil: provide some information about "bad url" when processing `pushurl` It appears pushurl only support `<proto>://` entries. This is not obvious and can lead to obscure error. We make the error less obscure as a start.. Differential Revision: https://phab.mercurial-scm.org/D10455
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 16 Apr 2021 00:16:43 +0200
parents 834f4e9d1af2
children e9c5c368be17
comparison
equal deleted inserted replaced
47275:ba673c821b9d 47276:9cc9b4a25248
173 > default = /path/to/nothing 173 > default = /path/to/nothing
174 > default:pushurl = /not/a/url 174 > default:pushurl = /not/a/url
175 > EOF 175 > EOF
176 176
177 $ hg paths 177 $ hg paths
178 (paths.default:pushurl not a URL; ignoring) 178 (paths.default:pushurl not a URL; ignoring: "/not/a/url")
179 default = /path/to/nothing 179 default = /path/to/nothing
180 180
181 #fragment is not allowed in :pushurl 181 #fragment is not allowed in :pushurl
182 182
183 $ cat > .hg/hgrc << EOF 183 $ cat > .hg/hgrc << EOF