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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:29:19+00:00 2026-05-28T00:29:19+00:00

Scenario: Repository structure changed from /trunk/ to /projectName/trunk/ and the local copy is outdated

  • 0

Scenario: Repository structure changed from /trunk/ to /projectName/trunk/ and the local copy is outdated and has a lot of modifications.

Question: How can I update the working copy directory path without updating the files.

Normally the solution to directory changes within the same repository would be to use the svn switch command. The problem is that it performs an update upon execution, the working copy is outdated and has a lot of local modifications that would conflict with the current revision.

What I’m looking for is the same behavior of the –relocate switch, which updates the path but doesn’t update the files. This way I can regain the ability check the statuses and differences for each file separately while maintaining the local copy functional (this is my main concern).

The switch –help provides a few arguments to deal with conflicts but I could find nothing that would stop the update altogether.

Any ideas? Thanks a lot.

  • 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-28T00:29:20+00:00Added an answer on May 28, 2026 at 12:29 am

    The solution for this particular case was simpler than I thought.

    svn switch performs an update to the latest revision in the repository by default, specifying the BASE revision (last revision obtained from the repository) of the working copy left most of the files untouched.

    I got the BASE revision of my working copy (294) by issuing the svn info command.

    Then just issuing the switch command with the BASE revision updated the repository path leaving most of the files untouched.

    svn switch -r 294 /projectName/trunk/

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

Sidebar

Related Questions

I have a single SVN repository with the following current structure: project1 branches trunk
Here's the scenario: I have a local git repository that mirrors the contents of
Here is the scenario that I have. I have a cvs repository in one
Scenario: A stored procedure receives from code a DateTime with, let's say DateTime.Now value,
Here is the scenario ... I am also using tortoise SVN ... I can
I got this scenario: I created a Git repository. $ git init Cloned an
I have the following scenario: I made a branch of trunk at revision 100.
I have a common scenario that I am looking for some guidance from people
in my scenario i maintain a svn-synchronized git repository on a server. all developers
So here is the scenario: i have a series of different repository classes that

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.