Can I stick history in SVN?

We had an OLD_FILE file with a very long history of ~ 100 versions.

This file was then deleted from the repository. And a new file NEW_FILE was created with the contents of OLD_FILE. Do not ask me - why the file is not just renamed;)

Then NEW_FILE was changed 5 times. And then NEW_FILE was renamed to OLD_FILE using svn.

Now, if we try to see the history for OLD_FILE, we only see the last 5 changes related to NEW_FILE. But we do not see many changes from the first OLD_FILE story.

Can I fix the repository to see all the changes for both OLD_FILE (~ 100 versions) and NEW_FILE (5 revisions)? I would like to see all these changes with the svn lof -q OLD_FILE command

BTW When I try to invoke Show Log from TortoiseSVN, I can see the following dialog:


Offline?

The problem is with the server connection. Do you want to see cached data?

Please understand that cached data may be outdated, incomplete or even misleading due to an incomplete history.

Offline. Permanently disconnected. Do not go offline


And then I can see all 100 revisions for the first OLD_FILE.

What does it mean?

+3
source share
2 answers

The short answer is no.

But if the dates, revision numbers, and relative order of other changes to NEW_FILE changes are not significant, you can:

Restore the history of old versions:

svn rm OLD_FILE 
svn copy -r when_old_was_gone OLD_FILE OLD_FILE

svn diff NEW_FILE, commit. , , .

svn . .

+2

Subversion , NEW_FILE OLD_FILE , - ; , . 100 , peg revision.

:

svn log http://my.repos.com/path/to/OLD_FILE@42

42 - , OLD_FILE .

+1

Source: https://habr.com/ru/post/1723789/


All Articles