Importing from SVN repo. through https:// to Plastic SCM

Importing a Subversion (svn) repository that uses svn:// or http:// into Plastic SCM with the Plastic SCM importer is a straightforward operation.

SVN_https

However, when the svn repository is using https://, as in the screenshot above, the Plastic SCM importer may fail authenticating, as shown below.

Failed_https

That's because of the https:// url. It is failing on the svn authentication part.

To overcome that;, here are few simple steps:

First, open a windows console (cmd.exe) in administrative mode in Windows VISTA/7 and type:

svn info https://url_to_your_repo

Then you will be prompted to type in your username and password. Go ahead and do that.

You will get a success, meaning credentials are cached in that terminal session.

To test the connection do:

svn ls https://url_to_repo

See screenshot below:

cmd_SVN_INFO

From within the same window execute the Plastic SCM guimporter.exe, and proceed. The importer will run successfully through the checks -- almost!

See the below screenshots. They are from the same window but in two parts:

SVN_https_check1

SVN_https_Checks2

The svn_ra API fails because it is not supported in https://, which means you will have the importer running in parsing mode and that is much slower!  It will still work, just very slowly.

The svn_ra API will kick in if you import through http:// or svn:// or file://.

 

Written by: Miller Auker - 2011