Commit 73931c8
committed
Really sort branches in the
To be able to properly sort branch versions, we need to handle all
special cases for versions with a `None` minor, as we can simply compare
`int`s to `None`. We consider `None` to be always bigger than any `int`
and 2 `None` to be equal.
Signed-off-by: Leandro Lucarella <[email protected]>version module1 parent a1f5353 commit 73931c8
1 file changed
+25
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| |||
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
209 | 227 | | |
210 | | - | |
211 | 228 | | |
212 | 229 | | |
213 | 230 | | |
| |||
0 commit comments