[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN strips port from svn+ssh URLs...

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2005-04-20 21:10:15 CEST

On Wed, 2005-04-20 at 14:36, Justin Erenkrantz wrote:
>
> if (uri.user && uri.port) {
> (*argv)[n++] = apr_psprintf(pool, "%s@%s:%d", uri.user, uri.host,
> uri.port);
> }
> else if (uri.user) {
> (*argv)[n++] = apr_psprintf(pool, "%s@%s", uri.user, uri.host);
> }
> else {
> (*argv)[n++] = uri.host;
> }

It looks like apr_uri_t contains a "hostinfo" field which is exactly
what we should be passing to ssh. No need to reconstruct it case by
case.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 20 21:11:23 2005

This is an archived mail posted to the Subversion Dev mailing list.