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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:13:31+00:00 2026-05-10T18:13:31+00:00

I have the following problem using subversion: I’m currently working on the trunk of

  • 0

I have the following problem using subversion:

I’m currently working on the trunk of my project and plan to do some refactoring (which includes renaming files or moving files to different directories).

At the same time someone else is working on the same project on a branch.

At some time I want to merge the changes made on the branch back to the trunk. That includes changes made to files (on the branch) that have been renamed on the trunk.

I did some tests and it seems that either subversion is not capable of following these changes or I’m missing someting (which is what I hope for). I tested this using the following script (should work in bash, assumes an svn repository at ‘http://myserver/svn/sandbox‘):

svn co http://myserver/svn/sandbox  cd sandbox/  mkdir -p MyProject/trunk MyProject/branches MyProject/tags  cat - <<EOF >MyProject/trunk/FileOne.txt Test 1 2 EOF  svn add MyProject  svn commit -m 'init'  # create a branch svn copy http://myserver/svn/sandbox/MyProject/trunk http://myserver/svn/sandbox/MyProject/branches/Branch_1 svn copy http://myserver/svn/sandbox/MyProject/trunk http://myserver/svn/sandbox/MyProject/branches/Branch_1  # rename the file svn move MyProject/trunk/FileOne.txt MyProject/trunk/FileTwo.txt  svn commit -m 'renamed file'  svn update   # change the content of FileOne in branch  cat - <<EOF >MyProject/branches/Branch_1/FileOne.txt Test 2 3 EOF  svn commit -m 'changed branch'  # I now try to merge the changes in FileOne back to FileTwo cd MyProject/trunk/ svn merge -r1:HEAD http://myserver/svn/sandbox/MyProject/branches/Branch_1 # but this yields the following message: # Skipped missing target: 'FileOne.txt' 

Any help is greatly appreciated.

Edit: Perhaps the process suggested by mikegrb could by somewhat automated by first generating a map of renamed files (old->new) from the svn log command on the trunk:

svn log -v ------------------------------------------------------------------------ r33 | sme | 2008-10-09 15:17:54 +0200 (Do, 09 Okt 2008) | 1 line Changed paths:    D /MyProject/trunk/FileOne.txt    A /MyProject/trunk/FileTwo.txt (from /MyProject/trunk/FileOne.txt:31)   resulting map: {FileOne.txt => FileTwo.txt} 

Now use this map to change filenames in the patch file generated on the branch.

Original:

Index: FileOne.txt =================================================================== --- FileOne.txt (.../trunk)     (revision 31) +++ FileOne.txt (.../branches/Branch_1) (revision 34) @@ -1,3 +1,3 @@  Test -1  2 +3 

modified:

Index: FileTwo.txt =================================================================== --- FileTwo.txt (.../trunk)     (revision 31) +++ FileTwo.txt (.../branches/Branch_1) (revision 34) @@ -1,3 +1,3 @@  Test -1  2 +3 

Just an Idea, haven’t done it yet.

  • 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. 2026-05-10T18:13:32+00:00Added an answer on May 10, 2026 at 6:13 pm

    I think this is an existing subversion bug – but don’t hold your breath, its been open since 2002.

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

Sidebar

Ask A Question

Stats

  • Questions 122k
  • Answers 122k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer mysql_fetch_array does not fetch an array of rows. It fetches… May 12, 2026 at 12:50 am
  • Editorial Team
    Editorial Team added an answer I've made my own installer script and here are my… May 12, 2026 at 12:50 am
  • Editorial Team
    Editorial Team added an answer It seems that the webservice method is defined as follows:… May 12, 2026 at 12:50 am

Related Questions

I have the following problem using subversion: I'm currently working on the trunk of
I am in the following predicament, i currently use Subversion for my source control
I'm writing a utility in Python that will attach changed files in Subversion to
I am currently working on a project with five other developers and we are
When hired on to my current company a year ago, I was tasked with

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.