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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:01:59+00:00 2026-06-02T12:01:59+00:00

I’ve renamed a branch in the repo and carelessly kept working with the same

  • 0

I’ve renamed a branch in the repo and carelessly kept working with the same working copy (that was checked out from that branch before the rename). When I later tried to commit, I’ve noticed the working copy is still targeting the old path. I want to commit the changes to the new path in the repo, while of course keeping history etc…

Do SVN has an elegant way around this?

I read about commands Switch and Relocate but I’m not sure any of them completely suits my problem (the scenarios described are different), and I’ve always been a bit frightened about trying out commands in the SVN… Does anyone has experience with these commands?

I guess I can go around the problem by, for example, checkout the renamed project to another working copy and then overwrite it with the changes (all besides the SVN metadata). I can also write some script that finds all occurrences of the old path and brutally change them to the new paths but I figured there must be some kind of SVN command for this.

Thanks!

  • 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-06-02T12:02:04+00:00Added an answer on June 2, 2026 at 12:02 pm

    If the repository URL changes, you need to relocate your working copy. The switch command is used to change the branch your working copy points to. The concepts themselves are quite clear.

    But you talk about project and I guess that’s the problem you are facing: you won’t find any reference to projects in the Subversion documentation because that isn’t a Subversion concept.

    There’re two basic ways to implement projects in Subversion:

    1. Create a repository per project:

      • https://example.com/svn/foo/trunk
      • https://example.com/svn/bar/trunk
    2. Create a branch per project within the same repository:

      • https://example.com/svn/projects/foo/trunk
      • https://example.com/svn/projects/bar/trunk

    So when you say “rename a project” you mean either “rename a repository” (#1) or “rename a branch” (#2) and the solution is:

    1. svn relocate to link your working copy again with the repository
    2. Either svn update to bring the changes to your working copy (if the change is within the working copy directory tree) or svn switch to change the branch your working copy points to (if you effectively removed current branch).

    Update: My advice so far is that you start from scratch. Rename your current working copy, check out a fresh one and reapply pending changes with a regular file compare tool like WinMerge or Kdiff3 (or TortoiseMerge). There’s no benefit in trying to find out what exact changes you did if they’re not evident from the log.

    For the future… You don’t need to learn the complete Subversion book by heart but you should get to know the basic concepts, esp. when they’ve proven to be an issue in your daily work.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into

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.