Mercurial > hg
comparison tests/test-url.py @ 26421:4b0fc75f9403
urls: bulk-change primary website URLs
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 30 Sep 2015 15:43:49 -0500 |
parents | 56b1f39dd0c1 |
children | 2903558a6991 |
comparison
equal
deleted
inserted
replaced
26420:2fc86d92c4a9 | 26421:4b0fc75f9403 |
---|---|
97 | 97 |
98 Missing scheme, host, etc.: | 98 Missing scheme, host, etc.: |
99 | 99 |
100 >>> url('://192.0.2.16:80/') | 100 >>> url('://192.0.2.16:80/') |
101 <url path: '://192.0.2.16:80/'> | 101 <url path: '://192.0.2.16:80/'> |
102 >>> url('http://mercurial.selenic.com') | 102 >>> url('https://mercurial-scm.org') |
103 <url scheme: 'http', host: 'mercurial.selenic.com'> | 103 <url scheme: 'https', host: 'mercurial-scm.org'> |
104 >>> url('/foo') | 104 >>> url('/foo') |
105 <url path: '/foo'> | 105 <url path: '/foo'> |
106 >>> url('bundle:/foo') | 106 >>> url('bundle:/foo') |
107 <url scheme: 'bundle', path: '/foo'> | 107 <url scheme: 'bundle', path: '/foo'> |
108 >>> url('a?b#c') | 108 >>> url('a?b#c') |
172 >>> url('./foo:bar') | 172 >>> url('./foo:bar') |
173 <url path: './foo:bar'> | 173 <url path: './foo:bar'> |
174 | 174 |
175 Non-localhost file URL: | 175 Non-localhost file URL: |
176 | 176 |
177 >>> u = url('file://mercurial.selenic.com/foo') | 177 >>> u = url('file://mercurial-scm.org/foo') |
178 Traceback (most recent call last): | 178 Traceback (most recent call last): |
179 File "<stdin>", line 1, in ? | 179 File "<stdin>", line 1, in ? |
180 Abort: file:// URLs can only refer to localhost | 180 Abort: file:// URLs can only refer to localhost |
181 | 181 |
182 Empty URL: | 182 Empty URL: |