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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:11:29+00:00 2026-05-14T22:11:29+00:00

In revision 1 a folder existed. In revision 2 the folder was accidently deleted

  • 0

In revision 1 a folder existed.
In revision 2 the folder was accidently deleted and the change committed.

We wish to roll back such that the folder is present, and retain its history.

In the TortoiseSVN docs it indicates ‘how’ in the section titled “Getting a deleted file or folder back”.

To quote:

Getting a deleted file or folder back

If you have deleted a file or a folder and already committed that delete operation to the repository, then a normal TortoiseSVN -> Revert can’t bring it back anymore. But the file or folder is not lost at all. If you know the revision the file or folder got deleted (if you don’t, use the log dialog to find out) open the repository browser and switch to that revision. Then select the file or folder you deleted, right-click and select [Context Menu] -> [Copy to…] as the target for that copy operation select the path to your working copy.

A switch retrieves the file into my working copy as one would expect, however there is no “Copy to” option on the context menu when I right click this working copy. If I open the repos browser, there is a copy to option, but it seems this simply takes a copy of the file.

The solution I feel is to do a Branch/Tag, but if I try this from a prior revision to the same path in the repository SVN throws error that the path already exists.

Therefore, how do I recover a folder/file in TortoiseSVN whilst also retaining all history.

TortoiseSVN v1.6.8, Build 19260 – 32 Bit , Subversion 1.6.11,

  • 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-14T22:11:29+00:00Added an answer on May 14, 2026 at 10:11 pm

    Do a “reverse merge”:

    1. Ensure that your working copy is updated to HEAD and completely clean (not strictly necessary, but always a good idea before trying to merge)
    2. Right click on the folder and select TortoiseSVN > Merge…
    3. Select “Merge a range of revisions” and hit “Next”
    4. The URL to merge from is the repo path for your current directory (ie. the one containing the deleted file)
    5. The revision range to merge is the revision in which you deleted the file (show log might help here)
    6. Be sure to select “Reverse merge”
    7. Hit “Next”
    8. All the default merge options should be sufficient, so hit “Merge”

    The file should now be added and still retain all of its previous history.

    Explanation:

    This “rolls back” the revision containing the deletion, but adds the merge information to the directory properties. SVN can track the original file through this metadata. On the command line you would to do a backwards merge of the revision in which you deleted it:

    svn merge -c -<revision-number> path/containing/file
    

    Note the hyphen before the rev number (ie. a “negative” revision nunber).

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

Sidebar

Related Questions

I have a revision that has been committed to SVN trunk which I would
I know how to revert to a specific revision of a folder using these
I just checked out a revision from Subversion to a new folder. Opened the
I'm doing some revision on an old app that is written in classic ASP/VbScript.
Does TortoiseSVN Revision Graph draw a line from Branch back to the Trunk when
I need to get the content of folder deleted from our repository long time
I have unfortunately committed one big folder to SVN (it has about 1.4GB and
When I run cap deploy , Capistrano will attempt to create a folder such
Does SVN allow you to completely and cleanly delete an entire revision from its
I have an existing SVN repository which contains a folder that holds my project.

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.