git-svn: introduce SVN version comparison function
commitf760c903b8525878cd3b426fc61a7a2cf8742609
authorJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2012 19:53:50 +0000 (2 19:53 +0000)
committerEric Wong <normalperson@yhbt.net>
Wed, 2 May 2012 20:11:18 +0000 (2 20:11 +0000)
treee587c87393918a93d5f5caa989bc749acca45f93
parent242cab397214b017ac837e870ac9950efc2968c3
git-svn: introduce SVN version comparison function

With double-digit version components in SVN::Core::VERSION,
a naive string comparison is no longer sufficient and
a numeric comparison is required for correct results.

This fixes a regression introduced in
commit 082afee621aeb2d3746c8ae290af98823f981f34
("git-svn: use platform specific auth providers")
where SVN version "1.6.6" was incorrectly assumed to
be newer than the required "1.6.12" version.

[mk: fix namespace references]
[ew: commit message]

Tested-by: Matthijs Kooijman <matthijs@stdin.nl>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl