You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by anatoly techtonik <te...@gmail.com> on 2010/02/08 14:41:50 UTC

relative filesystem path to local repository

Hello,

I am trying to checkout from local repository using relative file
path, but it fails to recognize it no matter how I try:
svn co testrepo testwc
svn co file:///testrepo testwc
svn co ./testrepo testwc
svn co file://./testrepo testwc
svn co file:///./testrepo testwc
svn co "file:/testrepo" testwc

svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file://./testrepo'

Why is this restriction?

I am trying to setup shared development environment for developing hook scripts.

Please, CC..

-- 
anatoly t.

Re: relative filesystem path to local repository

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
On Monday 08 February 2010, anatoly techtonik wrote:
> On Mon, Feb 8, 2010 at 11:04 PM, Ryan Schmidt
> > I don't think of it as a restriction; it's just a feature that doesn't
> > exist. "svn checkout" simply currently requires you to supply a
> > fully-qualified URL.
>
> So, does it worth entering feature request then?

Unless the request already exists, IMHO yes, at the very least it will be 
recorded why this feature is not going to be implemented.

In any case, the typical workaround is this:

For POSIX:

  svn co file://`pwd`/testrepo

For win32:
 
  svn co file://%CD%/testrepo


Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/

Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

**************************************************************************************
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************

Re: relative filesystem path to local repository

Posted by anatoly techtonik <te...@gmail.com>.
On Mon, Feb 8, 2010 at 11:04 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
> On Feb 8, 2010, at 08:41, anatoly techtonik wrote:
>
>> I am trying to checkout from local repository using relative file
>> path, but it fails to recognize it no matter how I try:
>> svn co testrepo testwc
>> svn co file:///testrepo testwc
>> svn co ./testrepo testwc
>> svn co file://./testrepo testwc
>> svn co file:///./testrepo testwc
>> svn co "file:/testrepo" testwc
>>
>> svn: Unable to open an ra_local session to URL
>> svn: Unable to open repository 'file://./testrepo'
>>
>> Why is this restriction?
>
> I don't think of it as a restriction; it's just a feature that doesn't exist. "svn checkout" simply currently requires you to supply a fully-qualified URL.

So, does it worth entering feature request then?
-- 
anatoly t.

Re: relative filesystem path to local repository

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 8, 2010, at 08:41, anatoly techtonik wrote:

> I am trying to checkout from local repository using relative file
> path, but it fails to recognize it no matter how I try:
> svn co testrepo testwc
> svn co file:///testrepo testwc
> svn co ./testrepo testwc
> svn co file://./testrepo testwc
> svn co file:///./testrepo testwc
> svn co "file:/testrepo" testwc
> 
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file://./testrepo'
> 
> Why is this restriction?

I don't think of it as a restriction; it's just a feature that doesn't exist. "svn checkout" simply currently requires you to supply a fully-qualified URL.