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

Re: Problem: Cannot find repository from remote

From: <ben_at_amigos24.net>
Date: Sat, 08 Mar 2008 05:36:32 +0200

Hi

Ryan wrote: "Use the svn command in the DOS command prompt on the
Windows machine to do the checkout. Or use TortoiseSVN as you've already
done. "

I am a rookie on Linux on svn in particular. Thus my question, what
would be that command, considering:
- the \ in Windows.
- the fact that svn needs to know where the repository is
- 192.168.0.35 is the IP of the local machine, to which I want to
checkout and "workingcopy" the folder to which checkout
- 192.168.0.38 the IP of the machine containing the repository in
home/svn/myproject

1) Assuming I use windows commandline: I move to the folder of the
working copy:

------------------------------
"cd workingcopy"
------------------------------

2) I connect to the SVN on the remote machine

------------------------------

svn co svn+ssh://ben3@192.168.0.38/home/svn/myproject

------------------------------

It asks for authetication, I enter the credentials.

3) I run the svn command being already in the folder "workingcopy":

------------------------------------------------------------------------------
"svn checkout svn+ssh://ben3@192.168.0.35"
------------------------------------------------------------------------------

4) It now should ask me for the credentials and checkout to that folder

Would be nice, if someone could validate the steps and commands of how
to connect remotely to the svn and of how to checkout to the local
windows machine.

Thx,
Ben

Ryan Schmidt wrote:
> On Mar 7, 2008, at 14:16, Ben Schonle wrote:
>
>> A short update:
>> -------------------
>>
>>
>> Hello,
>>
>> I can now check out to a remote machine using Tortoise.
>> - I mark a folder to be used for the local working copy and click
>> "Checkout" in the context menu appearing on right click.
>> - I enter: svn+ssh://ben3@192.168.0.38/home/svn/myproject
>> - It asks the psw for ben3 twice
>> - I enter password twice.
>> - It checks out and creates a local copy.
>
> Great! So it works. Seems like you're done...
>
>> Now to the persisting problem:
>> -------------------------------------
>> - I use putty, ssh
>> - I login first with ben3, enter the password for ben3
>> - Then I enter:
>>
>> svn co svn+ssh://ben3@192.168.0.38/home/svn/myproject BBBB
>> ben3_at_192.168.0.38's password:
>> ben3_at_192.168.0.38's password:
>> A BBBB/bewegtesbild
>> A BBBB/bewegtesbild/sbf
>> A BBBB/testsvnfolder
>> A BBBB/eigen
>> A BBBB/eigen/trunk
>> A BBBB/eigen/trunk/test
>> A BBBB/eigen/branches
>> A BBBB/eigen/tags
>> Checked out revision 3.
>>
>> It checks out into a folder BBBB, BUT on the machine where the
>> repository is, not the remote machine.
>
> Makes sense, doesn't it? You've ssh'd to the remote machine. Then on
> that machine, you've issued a checkout command. The working copy is
> checked out to the same machine on which you ran the checkout command.
>
>> I was wondering now whether I somehow have to define the path BBBB
>> differently like
>> svn co svn+ssh://ben3@192.168.0.38/home/svn/myproject
>> [url]http://192.168.0.35/C:/IBBBB[/url] ???
>
> No, the working copy is always checked out to the machine on which you
> ran the checkout command. If you want to check out the working copy on
> the machine whose IP address is 192.168.0.35, then run the checkout
> command on the machine whose IP address is 192.168.0.35, not on the
> machine whose IP address is 192.168.0.38 like you're doing.
>
>> The problem is that this is not working and how would I define the
>> path if the remote machine uses Windows as OS?
>
> Use the svn command in the DOS command prompt on the Windows machine
> to do the checkout. Or use TortoiseSVN as you've already done.
>
>> Cheers,
>> Ben
>>
>> PS: I started svn serve with:
>>
>> $ svnserve -d --foreground -r /home/svn
>
> Since you're using the svn+ssh protocol (and not the svn protocol),
> you don't need to start svnserve manually (and a copy you've started
> manually won't be used). The svn+ssh protocol starts a copy of
> svnserve for you when needed and closes it when it's done.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-08 04:37:21 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.