# HG changeset patch # User Oleksandr Gavenko # Date 1319195163 -10800 # Node ID d5b0b9cc4b49d6c38dfc70270bb4a725866504e2 # Parent cd10623031571ca821d48646581ad52024d08bec Fix indent. diff -r cd1062303157 -r d5b0b9cc4b49 devel-versioning.rst --- a/devel-versioning.rst Fri Oct 21 13:59:08 2011 +0300 +++ b/devel-versioning.rst Fri Oct 21 14:06:03 2011 +0300 @@ -190,14 +190,15 @@ Semver version ordering formula. -------------------------------- +:: -if (A.major != B.major) return A.major > B.major; -if (A.minor != B.minor) return A.minor > B.minor; -if (A.patch != B.patch) return A.patch > B.patch; -if (A.special == B.special) return 0; -if (A.special == "") return 1; -if (B.special == "") return -1; -return A.special > B.special; + if (A.major != B.major) return A.major > B.major; + if (A.minor != B.minor) return A.minor > B.minor; + if (A.patch != B.patch) return A.patch > B.patch; + if (A.special == B.special) return 0; + if (A.special == "") return 1; + if (B.special == "") return -1; + return A.special > B.special; **NOTE** Accoding to this definition 1.0.1rc1 < 1.0.1rc10 < 1.0.1rc2 which is non meaningful.