tags:

views:

20

answers:

2

Is there a way to svn check out a local working copy to a remote directory?

Running the import command works:

svn import -m "Testing import" my-working-copy.dev svn+ssh://[email protected]/root/my-working-copy

However, svn co doesnt:

svn co file://localhost/Library/WebServer/Documents/my-working-repo/trunk svn+ssh://[email protected]/root/my-working-copy

And the error it outputs:

stdin: is not a tty

svn: No repository found in 'svn+ssh://[email protected]/root/my-working-copy'

+1  A: 

Assuming that you're not simply looking for svn commit:

No, there is no way to do this just by using Subversion.

Workarounds:

  • Since you already have ssh access to the remote machine, you can mount the remote repository locally using sshfs and check out like you would to local filesystem.
  • You can also check out locally then scp to remote machine.
  • You can connect to remote machine over ssh, and run a checkout against the repository on your local machine through svn+ssh.

All of this can be scripted of course.

vls
Thanks, ill give this a try.
ryan
+1  A: 

Your svn working copy is not a repository. You can do a checkout only from the repository and not from the working copy.

Raghuram