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 6834437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:06:43+00:00 2026-05-26T23:06:43+00:00

If I have an svn working copy and I’d like to update the working

  • 0

If I have an svn working copy and I’d like to update the working copy with a new version of those files, I simply copy the new files on top of the old files and there’s no problem. Svn recognizes the differences between the files. (I’m using svn 1.6)

However, when the files I’m copying contains a directory structure, there’s a problem. For example, if the original directories in the working copy contain a top-level-directory/second-level, and I copy the new directory structure on top of it with top-level-directory/second-level, there’s a problem. Copying top-level-directory onto the existing one destroys the .svn folder that was contained under top-level-directory in the working copy. Now svn complains.

Is there a way to get this to work so that I can easily update files, either using the Linux ‘cp’ command, otherwise dragging files onto the existing locations in Eclipse. Otherwise I’d have to write some custom script to only copy every file, creating parent directories as needed. This seems like a pain, so I’m hoping there’s an easier way. (I’d be surprised if I were the only one who has the need for such usage.)

  • 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-26T23:06:43+00:00Added an answer on May 26, 2026 at 11:06 pm

    You can use the -u option of cp :

    -u, –update
    copy only when the SOURCE file is newer than the destination file or when the destination file is missing

    So, in your case a cp -ur /new/repository/* /old/repository/ will only override existing files, and not erase .svn directories.

    If you want, you can also use rsync.

    The major advantage of rsync is to copy only the minimum diff between updated files to avoid network overhead, but in a local copy, you won’t gain much in performance (the cost of the diff will balance the gain during copy).

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

Sidebar

Related Questions

I'm fairly new to SVN and I have a weird behavior issue. I'm working
I have tried. My working copy is based on but a modified version of
I have a svn working copy checked out. The root directory has a .svn
I have a working copy of some source code checked out from SVN -
I have a git-svn working copy and git log gives me no direct info
I have a working copy in svn that is at say revision 1000. We
i have this command TortoiseProc.exe /command:update /path:D:\Work_SVN\projectname/notempfile to update working copy. I also have
I have an svn working copy on my local system. I want to get
I have been doing an svn export from a working copy I have, but
Assume I have a working copy of a project versioned with svn. For a

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.