Re: Trying to restore a deleted directory in svn

Branko Čibej <[email protected]> Sat, 31 Jan 2026 06:18:16 +0100
Newsgroups gmane.comp.version-control.subversion.user
Organization The Apache Software Foundation
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------5egPHbGy0miZV6uWeC7OIYZm
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 31. 1. 26 01:24, Sunil Matta wrote:
> svn: version 1.14.5 (r1922182)
> OS: Linux Fedora 42
>
> I had deleted a directory in svn using svn del <working directory>
> followed by a commit on that delete.
>
> svn committed the delete, giving me a revision number.
>
> The files are still on my working directory but an svn list of the
> file:///home/svn-repo/__project_path__/trunk shows empty.
>
>
> Trying to revert using the svn path,
> svn revert file:///home/svn-repo/__project_path__/trunk
> doesn't work.
>
> Looked in the svn red bean book, couldn't finding anything on undoing a
> delete post commit.


You must not have spent much time reading it then.

https://svnbook.red-bean.com/en/1.7/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.resurrect


> Is it possible to undelete those files in svn? i.e Is it possible to
> revert to the state of directory prior to the delete revision number?

Yes.

-- Brane
--------------5egPHbGy0miZV6uWeC7OIYZm
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 31. 1. 26 01:24, Sunil Matta wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJOUhpqPPs6VXncR-HCoinMrtR9ziu09_8GUk=xPshjp-0KC-g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">svn: version 1.14.5 (r1922182)<br>
        OS: Linux Fedora 42<br>
        <br>
        I had deleted a directory in svn using svn del &lt;working
        directory&gt;<br>
        followed by a commit on that delete.<br>
        <br>
        svn committed the delete, giving me a revision number.<br>
        <br>
        The files are still on my working directory but an svn list of
        the<br>
        <a class="moz-txt-link-freetext" href="file:///home/svn-repo/__project_path__/trunk">file:///home/svn-repo/__project_path__/trunk</a> shows empty. <br>
        <br>
        <br>
        Trying to revert using the svn path,<br>
        svn revert <a class="moz-txt-link-freetext" href="file:///home/svn-repo/__project_path__/trunk">file:///home/svn-repo/__project_path__/trunk</a> <br>
        doesn't work.<br>
        <br>
        Looked in the svn red bean book, couldn't finding anything on
        undoing a<br>
        delete post commit.<br>
      </div>
    </blockquote>
    <br>
    <br>
    You must not have spent much time reading it then.<br>
    <br>
<a class="moz-txt-link-freetext" href="https://svnbook.red-bean.com/en/1.7/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.resurrect">https://svnbook.red-bean.com/en/1.7/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.resurrect</a><br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CAJOUhpqPPs6VXncR-HCoinMrtR9ziu09_8GUk=xPshjp-0KC-g@mail.gmail.com">
      <div dir="ltr">Is it possible to undelete those files in svn? i.e
        Is it possible to<br>
        revert to the state of directory prior to the delete revision
        number?<br>
      </div>
    </blockquote>
    <br>
    Yes.<br>
    <br>
    -- Brane
  </body>
</html>

--------------5egPHbGy0miZV6uWeC7OIYZm--