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

Re: create trunk for an existing rep

From: Micah Elliott <mde_at_micahelliott.com>
Date: 2007-10-17 00:38:39 CEST

On 2007-10-17 Christian Buhtz wrote:

> I have my repository on berliOS.
>
> I am on the svn-machine by SSH.
>
> I am in the root of the repository (ls:conf dav db format
> hooks locks).
>
> I forgot to create a trunk and branch directory.
>
> "svn mkdir trunk" say "svn: '.' is not a working copy". Of
> course it is not. It is the repository itself.
>
> How can I solve this?

You need a "working copy". Check out one in a sandbox area and
then make the appropriate changes. E.g.,

    cd ~/sandbox
    svn checkout file://path/to/repo tmpwc
    cd tmpwc
    svn mkdir trunk
    for f in *; do svn mv $f trunk; done
    svn mkdir branches tags
    svn commit -m "Finally got organized!"

-- 
                          _ _     ___
                          |V|icah |- lliott
                          " "     """
mde_at_MicahElliott.com            <><             http://MicahElliott.com
PGP: 0x7C07CBF0          ICQ: 369060435      Linux/Ubuntu: 417195/12440
HackerKey: v4sw6YUPCJhw5ln5pr7OPck2ma9u8Lw3m5l6Ui2e7t3b8LDMOen6a3XsMRr5

Received on Wed Oct 17 00:39:03 2007

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.