@@ -21,14 +21,14 @@ satisfy the niche.
21
21
{meth}`libvcs.url.git.GitURL.is_valid()`
22
22
23
23
```python
24
- from libvcs.url.git import GitURL
24
+ >>> from libvcs.url.git import GitURL
25
25
26
26
>>> GitURL.is_valid(url='https://github.com/vcs-python/libvcs.git')
27
27
True
28
28
```
29
29
30
30
```python
31
- from libvcs.url.git import GitURL
31
+ >>> from libvcs.url.git import GitURL
32
32
33
33
>>> GitURL.is_valid(url='git@github.com:vcs-python/libvcs.git')
34
34
True
40
40
{meth}`libvcs.url.hg.HgURL.is_valid()`
41
41
42
42
```python
43
+ >>> from libvcs.url.hg import HgURL
44
+
43
45
>>> HgURL.is_valid(url='https://hg.mozilla.org/mozilla-central/mozilla-central')
44
46
True
45
47
```
46
48
47
49
```python
50
+ >>> from libvcs.url.hg import HgURL
51
+
48
52
>>> HgURL.is_valid(url='hg@hg.mozilla.org:MyProject/project')
49
53
True
50
54
```
57
61
58
62
59
63
```python
64
+ >>> from libvcs.url.svn import SvnURL
65
+
60
66
>>> SvnURL.is_valid(
61
67
... url='https://svn.project.org/project-central/project-central')
62
68
True
63
69
```
64
70
65
71
```python
72
+ >>> from libvcs.url.svn import SvnURL
73
+
66
74
>>> SvnURL.is_valid(url='svn@svn.project.org:MyProject/project')
67
75
True
68
76
```
@@ -78,8 +86,10 @@ _Compare to {class}`urllib.parse.ParseResult`_
78
86
{class}`libvcs.url.git.GitURL`
79
87
80
88
```python
81
- >>> GitBaseURL(url='git@github.com:vcs-python/libvcs.git')
82
- GitBaseURL(url=git@github.com:vcs-python/libvcs.git,
89
+ >>> from libvcs.url.git import GitURL
90
+
91
+ >>> GitURL(url='git@github.com:vcs-python/libvcs.git')
92
+ GitURL(url=git@github.com:vcs-python/libvcs.git,
83
93
user=git,
84
94
hostname=github.com,
85
95
path=vcs-python/libvcs,
@@ -94,9 +104,11 @@ GitBaseURL(url=git@github.com:vcs-python/libvcs.git,
94
104
{class}`libvcs.url.hg.HgURL`
95
105
96
106
```python
97
- >>> HgBaseURL(
107
+ >>> from libvcs.url.hg import HgURL
108
+
109
+ >>> HgURL(
98
110
... url="http://hugin.hg.sourceforge.net:8000/hgroot/hugin/hugin")
99
- HgBaseURL (url=http://hugin.hg.sourceforge.net:8000/hgroot/hugin/hugin,
111
+ HgURL (url=http://hugin.hg.sourceforge.net:8000/hgroot/hugin/hugin,
100
112
scheme=http,
101
113
hostname=hugin.hg.sourceforge.net,
102
114
port=8000,
@@ -111,13 +123,15 @@ HgBaseURL(url=http://hugin.hg.sourceforge.net:8000/hgroot/hugin/hugin,
111
123
{class}`libvcs.url.svn.SvnURL`
112
124
113
125
```python
126
+ >>> from libvcs.url.svn import SvnURL
127
+
114
128
>>> SvnURL(
115
129
... url='svn+ssh://svn.debian.org/svn/aliothproj/path/in/project/repository')
116
130
SvnURL(url=svn+ssh://svn.debian.org/svn/aliothproj/path/in/project/repository,
117
131
scheme=svn+ssh,
118
132
hostname=svn.debian.org,
119
133
path=svn/aliothproj/path/in/project/repository,
120
- rule=core-svn )
134
+ rule=pip-url )
121
135
```
122
136
123
137
````
0 commit comments