From 460ab170f2a3ba941803f2665c24b0bcee2d9849 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 23 Jul 2012 12:42:59 -0400 Subject: Remove incorrect definition of lexical order. For the correct definition of lexical order, search for "lexical comparison". It's what your favorite language does for string comparison, unless your favorite language is something really esoteric. In short: If A and B are equal at every position, they are lexically equal. Otherwise, if A is a prefix of B, A precedes B. Otherwise, let i be the first position where A differs from B. If A[i] precedes B[i], A precedes B. --- version-spec.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'version-spec.txt') diff --git a/version-spec.txt b/version-spec.txt index 54a2ac0..4a3dccf 100644 --- a/version-spec.txt +++ b/version-spec.txt @@ -33,8 +33,7 @@ release. If the tag ends with "-cvs" or "-dev", you're looking at a development snapshot that came after a given release. If we *do* encounter two versions that differ only by status tag, we compare them - lexically as ASCII byte strings (ie, reverse-alphabetically so 'b' comes - before 'a'). The STATUS_TAG can't contain whitespace. + lexically. The STATUS_TAG can't contain whitespace. The EXTRA_INFO is also purely informational, often containing information about the SCM commit this version came from. It is surrounded by parentheses -- cgit v1.2.3-54-g00ecf