comparison tests/test-static-http.t @ 50990:758e40b9a8af stable

httppeer: fix static-http: scheme autodetection (issue6833) Since statichttprepo.make_peer() assumes path is a urlutil.path object (by accessing path.loc), we no longer can just provide a bytestring there. See also 5f71fff8dc74 and cfe8d88a453e.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 05 Oct 2023 14:47:42 -0300
parents 2f2682f40ea0
children dcaa2df1f688
comparison
equal deleted inserted replaced
50986:eccf7dc7c91e 50990:758e40b9a8af
146 $ cd local3 146 $ cd local3
147 $ hg verify -q 147 $ hg verify -q
148 $ hg paths 148 $ hg paths
149 default = static-http://localhost:$HGPORT/remotempty 149 default = static-http://localhost:$HGPORT/remotempty
150 150
151 test autodetecting static-http: scheme (issue6833)
152
153 $ cd ..
154 $ hg init actually-static
155 $ hg clone http://localhost:$HGPORT/actually-static local4
156 no changes found
157 updating to branch default
158 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
159
151 test with non-repo 160 test with non-repo
152 161
153 $ cd ..
154 $ mkdir notarepo 162 $ mkdir notarepo
155 $ hg clone static-http://localhost:$HGPORT/notarepo local3 163 $ hg clone static-http://localhost:$HGPORT/notarepo local3
156 abort: 'http://localhost:$HGPORT/notarepo' does not appear to be an hg repository 164 abort: 'http://localhost:$HGPORT/notarepo' does not appear to be an hg repository
157 [255] 165 [255]
158 166
223 /.hg/store/data/%7E2ehgsubstate.i (no-py37 !) 231 /.hg/store/data/%7E2ehgsubstate.i (no-py37 !)
224 /.hg/store/data/a.i 232 /.hg/store/data/a.i
225 /.hg/store/data/~2ehgsub.i (py37 !) 233 /.hg/store/data/~2ehgsub.i (py37 !)
226 /.hg/store/data/~2ehgsubstate.i (py37 !) 234 /.hg/store/data/~2ehgsubstate.i (py37 !)
227 /.hg/store/requires 235 /.hg/store/requires
236 /actually-static/.hg/bookmarks
237 /actually-static/.hg/bookmarks.current
238 /actually-static/.hg/dirstate
239 /actually-static/.hg/requires
240 /actually-static/.hg/store/00changelog.i
241 /actually-static/.hg/store/00manifest.i
242 /actually-static/.hg/store/requires
243 /actually-static/?cmd=capabilities
244 /actually-static?cmd=capabilities
228 /notarepo/.hg/00changelog.i 245 /notarepo/.hg/00changelog.i
229 /notarepo/.hg/requires 246 /notarepo/.hg/requires
230 /remote-with-names/.hg/bookmarks 247 /remote-with-names/.hg/bookmarks
231 /remote-with-names/.hg/bookmarks.current 248 /remote-with-names/.hg/bookmarks.current
232 /remote-with-names/.hg/cache/branch2-served 249 /remote-with-names/.hg/cache/branch2-served