You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Hatem Jaber <39...@7079.net> on 2008/02/21 20:25:19 UTC

SVN Copy Command

Hi,

I apologize for resending this if anyone has already received it. I sent this prior to subscribing for the service and maybe that's why I haven't received a response yet. I am really having trouble with svn copy, not sure what i'm doing wrong, but i'll do my best to explain how I got there.

1) Opened up svn-acl.txt (dir permission file) and added the following:
    [groups]
    team1 = rachel, harry, sally

    [ClientA:/]
    @team1 = rw

    [ClientA:/branches/mybranch]
    ross = rw
2) Subversion.conf - This file points to the "Repositories" directory which will be the place I store each repository per project
3) SVN-Auth-File - This of course has the U/N and P/W for each of the 4 team members
4) Opened up a CMD window and typed the following:
    a) mkdir C:\Repositories\ClientA
    b) svnadmin create C:\Repositories\ClientA
    c) svn mkdir http://my.url.com/svn/ClientA/Trunk (message: "Committed revision 1")
    d) svn mkdir http://my.url.com/svn/ClientA/Tags (message: "Committed revision 2")
    e) svn mkdir http://my.url.com/svn/ClientA/Branches (message: "Committed revision 3")

This is as far as I get before receiving any errors. When I try to run the following, I get an error:
    svn copy http://my.url.com/svn/ClientA/Trunk http://my.url.com/svn/Branches/mybranch -m "Creating mybranch in the Branches directory"
    
    svn: COPY of Branches/mybranch: 400 Bad Request (http://my.url.com)
    svn: Your commit message was left in a temporary file:
    svn:         'svn-commit.8.tmp

I think that I followed the directions from the svn book by using the example they showed the long way and the short way of doing it in the Using Branches / Creating a Branch in Chapter 4. If anyone out there has had the same issue and can offer some advice, I would greatly appreciate it. I am running Windows XP Pro, Apache 2.059, Subversion (Latest), and Subclipse (Latest). Everything I tried was through the CMD line, I've also tried with subclipse and have had no luck. Matter of fact, I get errors when I try to copy from the trunk to a branch or just copying back and forth doesn't work at all.

If you need more information, please let me know and I will do my best to provide.

Thanks,

H Jaber

Re: SVN Copy Command

Posted by Hari Kodungallur <hk...@gmail.com>.
On Thu, Feb 21, 2008 at 12:25 PM, Hatem Jaber <39...@7079.net> wrote:

>  Hi,
>
> I apologize for resending this if anyone has already received it. I sent
> this prior to subscribing for the service and maybe that's why I haven't
> received a response yet. I am really having trouble with svn copy, not sure
> what i'm doing wrong, but i'll do my best to explain how I got there.
>
> 1) Opened up svn-acl.txt (dir permission file) and added the following:
>     [groups]
>     team1 = rachel, harry, sally
>
>     [ClientA:/]
>     @team1 = rw
>
>     [ClientA:/branches/mybranch]
>     ross = rw
> 2) Subversion.conf - This file points to the "Repositories" directory
> which will be the place I store each repository per project
> 3) SVN-Auth-File - This of course has the U/N and P/W for each of the 4
> team members
> 4) Opened up a CMD window and typed the following:
>     a) mkdir C:\Repositories\ClientA
>     b) svnadmin create C:\Repositories\ClientA
>     c) svn mkdir http://my.url.com/svn/ClientA/Trunk (message: "Committed
> revision 1")
>      d) svn mkdir http://my.url.com/svn/ClientA/Tags (message: "Committed
> revision 2")
>      e) svn mkdir http://my.url.com/svn/ClientA/Branches (message:
> "Committed revision 3")
>
> This is as far as I get before receiving any errors. When I try to run the
> following, I get an error:
>     svn copy http://my.url.com/svn/ClientA/Trunk
> http://my.url.com/svn/Branches/mybranch -m "Creating mybranch in the
> Branches directory"
>
>     svn: COPY of Branches/mybranch: 400 Bad Request (http://my.url.com)
>     svn: Your commit message was left in a temporary file:
>     svn:         'svn-commit.8.tmp
>
> I think that I followed the directions from the svn book by using the
> example they showed the long way and the short way of doing it in the Using
> Branches / Creating a Branch in Chapter 4. If anyone out there has had the
> same issue and can offer some advice, I would greatly appreciate it. I am
> running Windows XP Pro, Apache 2.059, Subversion (Latest), and Subclipse
> (Latest). Everything I tried was through the CMD line, I've also tried with
> subclipse and have had no luck. Matter of fact, I get errors when I try to
> copy from the trunk to a branch or just copying back and forth doesn't work
> at all.
>
>


Likely because you are missing "ClientA" in the branch URL.

Thanks,
-Hari

Re: SVN Copy Command

Posted by Erik Huelsmann <eh...@gmail.com>.
On Thu, Feb 21, 2008 at 9:25 PM, Hatem Jaber <39...@7079.net> wrote:
>
>
> Hi,
>
> I apologize for resending this if anyone has already received it. I sent
> this prior to subscribing for the service and maybe that's why I haven't
> received a response yet. I am really having trouble with svn copy, not sure
> what i'm doing wrong, but i'll do my best to explain how I got there.

Generally, you'll have to be patient to wait for an answer from this
list: you're not guaranteed to receive one within hours, but if you
haven't received one in a week, reposting may help.

First time posts from non-subscribers have to be moderated, so that's
why your mail didn't appear on the list yet. Please leave some time
for moderation. It's a task executed by volunteers, meaning that they
won't be sitting 24h a day to moderate new mails.

Other than that, welcome to the list!

Bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: SVN Copy Command

Posted by Toby Thain <to...@telegraphics.com.au>.
On 21-Feb-08, at 2:25 PM, Hatem Jaber wrote:

> Hi,
>
> I apologize for resending this if anyone has already received it. I  
> sent this prior to subscribing for the service and maybe that's why  
> I haven't received a response yet. I am really having trouble with  
> svn copy, not sure what i'm doing wrong, but i'll do my best to  
> explain how I got there.
>
> 1) Opened up svn-acl.txt (dir permission file) and added the  
> following:
>     [groups]
>     team1 = rachel, harry, sally
>
>     [ClientA:/]
>     @team1 = rw
>
>     [ClientA:/branches/mybranch]
>     ross = rw
> 2) Subversion.conf - This file points to the "Repositories"  
> directory which will be the place I store each repository per project
> 3) SVN-Auth-File - This of course has the U/N and P/W for each of  
> the 4 team members
> 4) Opened up a CMD window and typed the following:
>     a) mkdir C:\Repositories\ClientA
>     b) svnadmin create C:\Repositories\ClientA
>     c) svn mkdir http://my.url.com/svn/ClientA/Trunk (message:  
> "Committed revision 1")
>     d) svn mkdir http://my.url.com/svn/ClientA/Tags (message:  
> "Committed revision 2")
>     e) svn mkdir http://my.url.com/svn/ClientA/Branches (message:  
> "Committed revision 3")
>
> This is as far as I get before receiving any errors. When I try to  
> run the following, I get an error:
>     svn copy http://my.url.com/svn/ClientA/Trunk http://my.url.com/ 
> svn/Branches/mybranch -m "Creating mybranch in the Branches directory"

Your destination URL is missing "ClientA" component.

--Toby

>
>     svn: COPY of Branches/mybranch: 400 Bad Request (http:// 
> my.url.com)
>     svn: Your commit message was left in a temporary file:
>     svn:         'svn-commit.8.tmp
>
> I think that I followed the directions from the svn book by using  
> the example they showed the long way and the short way of doing it  
> in the Using Branches / Creating a Branch in Chapter 4. If anyone  
> out there has had the same issue and can offer some advice, I would  
> greatly appreciate it. I am running Windows XP Pro, Apache 2.059,  
> Subversion (Latest), and Subclipse (Latest). Everything I tried was  
> through the CMD line, I've also tried with subclipse and have had  
> no luck. Matter of fact, I get errors when I try to copy from the  
> trunk to a branch or just copying back and forth doesn't work at all.
>
> If you need more information, please let me know and I will do my  
> best to provide.
>
> Thanks,
>
> H Jaber


Re: SVN Copy Command

Posted by Karl Fogel <kf...@red-bean.com>.
"Hatem Jaber" <39...@7079.net> writes:
> 1) Opened up svn-acl.txt (dir permission file) and added the following:
>     [groups]
>     team1 = rachel, harry, sally
>  
>     [ClientA:/]
>     @team1 = rw
>  
>     [ClientA:/branches/mybranch]
>     ross = rw
> 2) Subversion.conf - This file points to the "Repositories" directory which
> will be the place I store each repository per project
> 3) SVN-Auth-File - This of course has the U/N and P/W for each of the 4 team
> members
> 4) Opened up a CMD window and typed the following:
>     a) mkdir C:\Repositories\ClientA
>     b) svnadmin create C:\Repositories\ClientA
>     c) svn mkdir http://my.url.com/svn/ClientA/Trunk (message: "Committed
> revision 1")
>     d) svn mkdir http://my.url.com/svn/ClientA/Tags (message: "Committed
> revision 2")
>     e) svn mkdir http://my.url.com/svn/ClientA/Branches (message: "Committed
> revision 3")
>  
> This is as far as I get before receiving any errors. When I try to run the
> following, I get an error:
>     svn copy http://my.url.com/svn/ClientA/Trunk http://my.url.com/svn/Branches
> /mybranch -m "Creating mybranch in the Branches directory"
>    
>     svn: COPY of Branches/mybranch: 400 Bad Request (http://my.url.com)
>     svn: Your commit message was left in a temporary file:
>     svn:         'svn-commit.8.tmp
>  
> I think that I followed the directions from the svn book by using the example
> they showed the long way and the short way of doing it in the Using Branches /
> Creating a Branch in Chapter 4. If anyone out there has had the same issue and
> can offer some advice, I would greatly appreciate it. I am running Windows XP
> Pro, Apache 2.059, Subversion (Latest), and Subclipse (Latest). Everything I
> tried was through the CMD line, I've also tried with subclipse and have had no
> luck. Matter of fact, I get errors when I try to copy from the trunk to a
> branch or just copying back and forth doesn't work at all.
>  
> If you need more information, please let me know and I will do my best to
> provide.

It sounds like Hari Kodungallur and Toby Thain have already found the
answer (missing "ClientA" in URL) to the question you asked.

But I'll just add a comment:

You probably should have your "trunk", "tags" and "branches"
directories be all lower-case.  Although everything will of course
work with the first letters capitalized, the convention is to have
them all lower-case, and some tools that know about that convention
may work better if you stick to the standard.

Best,
-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org