Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3622804
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:18:18+00:00 2026-05-18T23:18:18+00:00

Pls. see Creating a Subversion branch . I created a repository with a URL

  • 0

Pls. see Creating a Subversion branch. I created a repository with a URL http://reposerver/svn/repository/ and checked out a working copy and started adding files to the root instead of doing it into the trunk folder.

Now, we need to create a branch except we don’t have a “trunk” folder. From the above link, user “Wrikken” suggested that we “Possible workaround is to create a folder trunk now, and move the current content of the root sans branches dir into that location. “

Now, we don’t know how to do “move the current content of the root sans branches dir into that location”. What command should we use to do the same ?

When we do ls -la of /var/svn/repository, here’s what we see

total 32
drwxr-xr-x 2 www-data subversion 4096 2010-12-28 18:20 conf
drwxr-xr-x 3 www-data www-data   4096 2010-12-28 18:23 dav
drwxr-sr-x 6 www-data subversion 4096 2010-12-28 18:31 db
-r--r--r-- 1 www-data subversion    2 2010-12-28 18:20 format
drwxr-xr-x 2 www-data subversion 4096 2010-12-28 18:20 hooks
drwxr-xr-x 2 www-data subversion 4096 2010-12-28 18:20 locks
-rw-r--r-- 1 www-data subversion  229 2010-12-28 18:20 README.txt
-rw-r--r-- 1 root     root         95 2010-12-28 18:41 svn-commit.tmp

TL DR : We need to create a branch and our repository does NOT have “trunk” and “branches”
so what commands do we need to use to move existing repository content to a trunk directory ?

Thank you,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:18:18+00:00Added an answer on May 18, 2026 at 11:18 pm

    Execute the following commands in the root of a working copy of the repository (ls should output the contents of your repository, not the files and directories quoted in the question).

    svn mkdir trunk
    svn mv `ls | egrep -v '^branches$` trunk
    svn ci -m 'Create trunk dir and move trunk contents into it.'
    

    egrep -v '^branches$ matches everything except branches. The mv command will be clever enough to not try move trunk into itself, although it will yell at you with an error you can safely ignore.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

pls use this http://code.google.com/p/google-web-toolkit-doc-1-6/wiki/DevGuideJavaFromJavaScript IFI means int float int but if i want to
I developed one plugin(RMP) in eclipse 3.3.2 where i am creating menu items dynamically.
In codeIgnator frame work the below is my code working properly.But i cannot control
Please see Java Enum definition and Why in java enum is declared as Enum<E
can someone help me pls, im new to vb.net and im trying to work
This has been driving me mad someone help coz i don't seem to see
HI, i have code for session time out but i dont know whats the
hey guys, I've followed some tutorials online regarding creating and installing a windows service
Here is what I'm trying to do. I'm trying to make a bullet out
Can anyone pls let me know the exact c++ code of case sensitive comparison

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.