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 12:36:26 UTC

SVN Copy

Hi,

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

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

>  Hi,
>
> 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