Fix issue with svn checkout
Update getSvnRevision function

* Detect repository type
Add options to choose revision and target