| View previous topic :: View next topic |
| Author |
Message |
arobd

Joined: 09 Aug 2008 Posts: 4 Location: Dhaka, Bangladesh
|
Posted: Sat Aug 09, 2008 10:41 pm Post subject: svn export command help needed |
|
|
I like to export a project to a directory from the repo.
For example:
I have a project named abc. Repository URL is http://SomeIPAddress/repos/abc and path is /var/www/svn/abc
Now I like to export the head version to /var/www/vhosts/something.com/httpdocs/
What is the svn command? _________________ Arafat Rahman
http://arafatbd.net |
|
| Back to top |
|
andyl
Joined: 03 Nov 2005 Posts: 4881
|
Posted: Sat Aug 09, 2008 10:58 pm Post subject: |
|
|
svn export <URL> <destination>
See also svn help export |
|
| Back to top |
|
arobd

Joined: 09 Aug 2008 Posts: 4 Location: Dhaka, Bangladesh
|
Posted: Sat Aug 09, 2008 11:59 pm Post subject: |
|
|
| andyl wrote: | svn export <URL> <destination>
See also svn help export |
I tried this command
| Code: | | svn export http://SomeIPAddress/repos/abc /var/www/vhosts/something.com/httpdocs/ |
But not working, getting these error messages.
| Code: | svn: PROPFIND request failed on '/repos/abc'
svn: PROPFIND of '/repos/abc': could not connect to server (http://SomeIPAddress) |
_________________ Arafat Rahman
http://arafatbd.net |
|
| Back to top |
|
JNiven
Joined: 17 Feb 2008 Posts: 1288 Location: Glasgow, Scotland
|
Posted: Sun Aug 10, 2008 12:23 am Post subject: |
|
|
Hi Arafat
Can you "ping" the remote machine from the client machine? [1]
Do other SVN commands work, e.g.
| Code: | | svn ls http://SomeIPAddress/repos/abc | [2]
If SSL is enabled on the remote machine's Apache, are you able to export if you use https:// instead of http://? e.g.
[codesvn export https://SomeIPAddress/repos/abc /var/www/vhosts/something.com/httpdocs/[/code] [3]
If 1, then it's not an SVN issue, it's an issue with your network - see you network admin.
If 2 (unlikely - export is read-only), then it's an issue with "svn export" - does "svn checkout" work?
If 3, then it's an issue with your network - probably with a router or proxy between you and the remote machine.
Cheers
John _________________ John Niven |
|
| Back to top |
|
arobd

Joined: 09 Aug 2008 Posts: 4 Location: Dhaka, Bangladesh
|
Posted: Sun Aug 10, 2008 12:53 am Post subject: |
|
|
Hi John,
| Code: | | svn ls http://SomeIPAddress/repos/abc |
this command is not working.
Actually I am working in my server using SSH where SVN is installed. Now I want to export the repo to a folder in same server.
I can connect from my local PC using TortoiseSVN for Windows and working fine. _________________ Arafat Rahman
http://arafatbd.net |
|
| Back to top |
|
arobd

Joined: 09 Aug 2008 Posts: 4 Location: Dhaka, Bangladesh
|
Posted: Sun Aug 10, 2008 1:00 am Post subject: |
|
|
Wow!
I have got the solution. This command working fine.
| Code: | | svn export http://127.0.0.1/repos/abc /var/www/vhosts/something.com/httpdocs/ --username user --password mypass --force |
Thanks John Niven and andyl. _________________ Arafat Rahman
http://arafatbd.net
Last edited by arobd on Sun Aug 10, 2008 1:03 am; edited 2 times in total |
|
| Back to top |
|
JNiven
Joined: 17 Feb 2008 Posts: 1288 Location: Glasgow, Scotland
|
Posted: Sun Aug 10, 2008 1:02 am Post subject: |
|
|
Hi Arafat
It's been a while since I last used SSH, but I seem to remember a similar issue. If you replace the IP address with "localhost" does it work? (I can't remember why I think it may make a difference, but give it a go). If that doesn't work I'd suggest using the file:// protocol instead of http:// while you're using SSH.
Cheers
John _________________ John Niven |
|
| Back to top |
|
|
View previous topic :: View next topic |