scm: subversion: refactor getting svn version and add lib test (#4273).
Authored by: tmaruyama 2011-02-15
Parent: [r4824]
Child: [r4826]