<p>This is a follow on question to "<a href="https://stackoverflow.com/questions/33778/how-do-i-delete-1-file-from-a-revision-in-svn">How do I delete 1 file from a revision in SVN?</a>" but because it probably has a very different answer and I believe that others would benefit from knowing the answer. (I don't know the answer yet.)</p>

<p>The previous question was answered and I discovered that it is not possible to remove a revision from SVN. The second best solution was to remove the file from SVN, commit and then add the file back and commit again.</p>

<p>I now want to make sure that the original file's revision history has gone. So I am hoping that the answer to the question "<strong>How can I find the revision history of the file that was deleted and then resubmitted to SVN?</strong>" is that you can't.</p>

[{'answer_id': 33846, 'author': 'Matt Mitchell', 'author_id': 364, 'author_profile': 'https://Stackoverflow.com/users/364', 'pm_score': 1, 'selected': False, 'text': "<p>I would have said you can't - you have created a new file and thus revision tree in the eyes of SVN.</p>\n\n<p>It may be possible to recover the old tree independently (not sure if you managed an actual delete or just SVN Delete) but there is no link between the old revision tree and the new one.</p>\n"}, {'answer_id': 33862, 'author': 'Damien B', 'author_id': 3069, 'author_profile': 'https://Stackoverflow.com/users/3069', 'pm_score': 3, 'selected': True, 'text': "<p>With a simple </p>\n\n<pre><code>svn log -v [folder]\n</code></pre>\n\n<p>you can browse quickly the adding and deletion.</p>\n\n<pre><code>------------------------------------------------------------------------\nr14 | kame | 2008-08-29 04:23:43 +0200 (ven., 29 aoû2008) | 1 line\nChemins modifié :\n   A /a.txt\n\nReadded a\n------------------------------------------------------------------------\nr13 | kame | 2008-08-29 04:23:24 +0200 (ven., 29 aoû2008) | 1 line\nChemins modifié :\n   D /a.txt\n\nDelete a\n------------------------------------------------------------------------\nr12 | kame | 2008-08-29 04:23:06 +0200 (ven., 29 aoû2008) | 1 line\nChemins modifié :\n   A /a.txt\n</code></pre>\n\n<p>svn log won't show the file, svn diff will pretend that the old revision does not exist, but a svn checkout targeting the old revision will happily give you the old file.</p>\n"}, {'answer_id': 33874, 'author': 'Jörg W Mittag', 'author_id': 2988, 'author_profile': 'https://Stackoverflow.com/users/2988', 'pm_score': 2, 'selected': False, 'text': "<p>What makes you think that it is not possible to remove a revision from Subversion? The solution given to your other question (<code>svndumpfilter</code>) does exactly that (see the parameters <code>--drop-empty-revs</code> and <code>--renumber-revs</code>)! And when the revision is gone, there's obviously no way to get at the revision history, because it was never there in the first place.</p>\n"}, {'answer_id': 33878, 'author': 'AndrewR', 'author_id': 2994, 'author_profile': 'https://Stackoverflow.com/users/2994', 'pm_score': 2, 'selected': False, 'text': '<p><strong>Short answer:</strong> you can</p>\n\n<p><strong>Long answer:</strong></p>\n\n<p>Unfortunately (for you but perhaps not for most folks) , the revision history for a deleted file is still there - it\'s just a little harder to get at.</p>\n\n<p>Here\'s an example:</p>\n\n<pre><code>$ touch one\n$ svn add one\n$ svn ci -m "Added file one"\n$ date &gt;&gt; one \n$ svn ci -m "Updated file one"\n$ date &gt;&gt; one\n$ svn ci -m "Updated file one again"\n$ svn log file:///repos/one\n\n------------------------------------------------------------------------\nr3 | andrewr | 2008-08-29 12:27:10 +1000 (Fri, 29 Aug 2008) | 1 line\n\nUpdated file one again\n------------------------------------------------------------------------\nr2 | andrewr | 2008-08-29 12:26:50 +1000 (Fri, 29 Aug 2008) | 1 line\n\nUpdated file one\n------------------------------------------------------------------------\nr1 | andrewr | 2008-08-29 12:25:07 +1000 (Fri, 29 Aug 2008) | 1 line\n\nAdded file one\n------------------------------------------------------------------------\n\n$ svn delete one\n$ svn ci -m "Deleted file one"\n$ svn up\n$ touch one\n$ svn add one\n$ svn ci -m "Adding file one back in"\n$ svn log file:///repos/one\n\n------------------------------------------------------------------------\nr5 | andrewr | 2008-08-29 12:29:13 +1000 (Fri, 29 Aug 2008) | 1 line\n\nadd one back\n------------------------------------------------------------------------\n</code></pre>\n\n<p>It looks like it works (the old history is gone), but if you request the file at older revisions you get the history\nof the deleted file.</p>\n\n<pre><code>$ svn log -r 3:1 file:///repos/one\n\n------------------------------------------------------------------------\nr3 | andrewr | 2008-08-29 12:27:10 +1000 (Fri, 29 Aug 2008) | 1 line\n\nUpdated file one again\n------------------------------------------------------------------------\nr2 | andrewr | 2008-08-29 12:26:50 +1000 (Fri, 29 Aug 2008) | 1 line\n\nUpdated file one\n------------------------------------------------------------------------\nr1 | andrewr | 2008-08-29 12:25:07 +1000 (Fri, 29 Aug 2008) | 1 line\n\nAdded file one\n------------------------------------------------------------------------\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/33836', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1463/']