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

  • Home
  • SEARCH
  • 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 8869641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:31:39+00:00 2026-06-14T17:31:39+00:00

We have a subversion repository and just discovered that files in the subversion repository

  • 0

We have a subversion repository and just discovered that files in the subversion repository where moved from one folder to another using the filesystem operations resulting in a deletion and an addition to subversion. As expected history of the file was not taken over to the new location.
Is it possible to convert this wrongly done move into a true svn mv where the history is copied along?
The problem is that the commit has been a while back and there have been several commits on top of this commit. So a simple reverse merge and a proper move are out of option.

  • 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-14T17:31:40+00:00Added an answer on June 14, 2026 at 5:31 pm

    It is possible assuming you have direct access to the repository, can dump and reload it, so assuming.

    In short the steps are:

    1. Dump the repository..
    2. Modify the dump (see below).
    3. Create a new repository.
    4. Load the modified dump into the new repository (loading the dump into the existing one would not replace the content, but actually be appended.
    5. Verify the change.
    6. Replace the old repository with the new repository.
      you need to dump the repository, modify the dump, delete, recreate and load the repository.

    Required Dumpfile Modification

    Your wrong move operation in the dumpfile will look something like that:

    Revision-number: 2
    Prop-content-length: 111
    Content-length: 111
    
    K 7
    svn:log
    V 13
    Wrong rename.
    K 10
    svn:author
    V 3
    tom
    K 8
    svn:date
    V 27
    2012-11-22T22:11:49.101403Z
    PROPS-END
    
    Node-path: renamed file.txt
    Node-kind: file
    Node-action: add
    Prop-content-length: 10
    Text-content-length: 8
    Text-content-md5: 226648ec2921fddba76a340ac976f760
    Text-content-sha1: 18cc7289b71fd17898ca179dcb3a05f3d2a07e8b
    Content-length: 18
    
    PROPS-END
    Content!
    
    Node-path: file.txt
    Node-action: delete
    

    For further reading the dump file specification is worth checking out, however for your problem only a small set of entries are relevant: There are two nodes, one with Node-action: add, the other with Node-action: delete. All you need to do is to modify the dump so that it looks like:

    Revision-number: 2
    Prop-content-length: 111
    Content-length: 111
    
    K 7
    svn:log
    V 13
    Right rename.
    K 10
    svn:author
    V 3
    tom
    K 8
    svn:date
    V 27
    2012-11-22T22:13:51.674043Z
    PROPS-END
    
    Node-path: renamed file.txt
    Node-kind: file
    Node-action: add
    Node-copyfrom-rev: 1
    Node-copyfrom-path: file.txt
    Text-copy-source-md5: 226648ec2921fddba76a340ac976f760
    Text-copy-source-sha1: 18cc7289b71fd17898ca179dcb3a05f3d2a07e8b
    
    
    Node-path: file.txt
    Node-action: delete
    

    Thus, you need replace

        Prop-content-length: <a>
        Text-content-length: <b>
        Text-content-md5: <md5>
        Text-content-sha1: <sha1>
        Content-length: <e>
    

    with

        Node-copyfrom-rev: <correct revision>
        Node-copyfrom-path: <correct path>
        Text-copy-source-md5: <md5>
        Text-copy-source-sha1: <sha1>
    

    and remove the actual content of the file.

    The delete action stays unchanged.

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

Sidebar

Related Questions

so I have started using Subversion and am confused about the ignore files. From
I have a Subversion repository on a drive separated from my system drive (Windows
I am new to git, and have a subversion repository that I want to
When updating from subversion repository using tortoise svn client I get error looking like
Im using subversion via Coda on a Mac, and I have just set up
We have a custom font (ttf) that we added to a subversion repository. We've
CentOS 5.3 subversion 1.4.2 I have been using git for one of my projects.
I have successfully cloned the OpenWRT buildroot from the subversion repository and I've been
I have a project that is stored in a Subversion repository. In this repository,
I have a subversion repository, where each branch is a separate project. I would

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.