Tortoise SVN lost in log

102 views
Skip to first unread message

Robert Gaudreau

unread,
Dec 12, 2020, 10:16:05 PM12/12/20
to TortoiseSVN

This is regarding TortoiseSVN missing revisions history when looking up the working copies' show log.

After a reinstallation of windows on both computers and restoring the repository with the working copies from my back up, I’ve lost the latest SVN revisions.

My question, is there a way to restore the subversion revisions that I do not see, or it will be forever lost?

For the environment, as a single developer SVN working copies on a desktop and a laptop; the working copies are committed to one repository on the laptop.

I’ve read in the ebook, “svn-book.pdf” which is very good. We can recuperate files that were deleted; I imagine there is a way to get the subversion in sync with the current state.

Thank you, Robert

Stefan

unread,
Dec 14, 2020, 12:31:55 PM12/14/20
to TortoiseSVN
clear the log cache from the settings dialog -> saved data

Robert Gaudreau

unread,
Dec 15, 2020, 3:19:21 AM12/15/20
to TortoiseSVN
Hi Stefan,

Thank you very much for this advice, it is very nice of you helping me out; to let you know what I’ve done. I’ve cleared the log cache from the settings under saved data, even after clearing the cache I do not see the latest revision. On the desktop, when I look in the explorer with Directory Opus where I can see, all the SVN attributes the SVN Revision is giving me the latest revision 1041. When I’m looking at the repo browse the latest one is 631. For some reason TortoiseSVN is not seeing the latest revision. As for the laptop working copies the latest revision is 604, what I see on either side the repo browse and the explorer directory opus where I can see all the TortoiseSVN attributes are the same. What will be the next thing to do? Meanwhile I’ve started local repository on both sides if I can resolve this I’ll merge them back. This is the first time it is happening in 9 years of using SVN. This time it is quite consequent a year of revision lost.

Thanks again,
Robert

Stefan

unread,
Dec 15, 2020, 1:15:02 PM12/15/20
to TortoiseSVN
On Tuesday, December 15, 2020 at 9:19:21 AM UTC+1 jolic...@gmail.com wrote:
Hi Stefan,

Thank you very much for this advice, it is very nice of you helping me out; to let you know what I’ve done. I’ve cleared the log cache from the settings under saved data, even after clearing the cache I do not see the latest revision. On the desktop, when I look in the explorer with Directory Opus where I can see, all the SVN attributes the SVN Revision is giving me the latest revision 1041. When I’m looking at the repo browse the latest one is 631. For some reason TortoiseSVN is not seeing the latest revision. As for the laptop working copies the latest revision is 604, what I see on either side the repo browse and the explorer directory opus where I can see all the TortoiseSVN attributes are the same. What will be the next thing to do? Meanwhile I’ve started local repository on both sides if I can resolve this I’ll merge them back. This is the first time it is happening in 9 years of using SVN. This time it is quite consequent a year of revision lost.

from your description I think that your backup was bad and that the repository is really missing those revisions.
You can try the svn command line tools on the repository:
$ svnadmin verify path\to\repository
$ svnadmin recover path\to\repository

maybe that helps or gives you a hint on what's wrong.

Message has been deleted

Robert Gaudreau

unread,
Dec 17, 2020, 2:40:03 AM12/17/20
to TortoiseSVN
Hi Stefan,

I'm grateful; I've tried exactly what you've asked for with the svnadmin command,  here's the result.

Y:\>svnadmin verify c:\svn-repository
          Verifying repository metadata ...
          Verifying metadata at revision 2 ...
          Verifying metadata at revision 3 ...
          Verifying metadata at revision 4 ...
          Verified revision 0.
          Verified revision 1.
          Verified revision 2.
          Verified revision 3.
          Verified revision 4.
Y:\>svnadmin recover svn-repository Repository lock acquired.
Please wait; recovering the repository may take some time...
Recovery completed.
The latest repos revision is 4.
Y:\>

It did not recover the revisions that I was looking for.  I'll search more aside the backup what I'ved done exactly to lose revisions.

Thanks,
Robert

Robert Gaudreau

unread,
Dec 17, 2020, 1:10:22 PM12/17/20
to TortoiseSVN
Hi Stefan,

I'm grateful; I've tried exactly what you've asked for with the svnadmin command,  here's the result.


It did not recover the revisions that I was looking for.  I'll search more aside the backup what I'ved done exactly to lose revisions.

Thanks,
Robert

Robert Gaudreau

unread,
Dec 17, 2020, 1:11:11 PM12/17/20
to TortoiseSVN
Hi Stefan,

I'm grateful; I've tried exactly what you've asked for with the svnadmin command,  here's the result.



It did not recover the revisions that I was looking for.  I'll search more aside the backup what I'ved done exactly to lose revisions.

Thanks,
Robert

Tobias Knauss

unread,
Dec 18, 2020, 1:34:45 AM12/18/20
to TortoiseSVN
I am not a developer of Tortoise SVN, but just a user.
However, I would like to support you if possible since I once encountered a similar situation as you are in.
You wrote that you have restored a backup of the repository. This brings up several questions:
- Are you sure that the backup was complete?
- Are you sure that the restore of the backup was fully done?
- What SVN server do you use? Is it a file-based repo, created by TSVN, or a server-based repo, hosted by software like "Subversion Edge" or "Visual SVN Server"?

In my situation, I created and restored a backup in SVN Edge, but the restore was incomplete (because of some failures in SVN Edge, being unable to handle some kind of line-breaks in log messages, see https://stackoverflow.com/questions/10279222/how-can-i-fix-the-svn-import-line-endings-error/). The restore finished, but it was incomplete. Maybe you are in a similar situation: Your repo may be half-restored, thus missing the revisions you are looking for.

Robert Gaudreau

unread,
Dec 18, 2020, 5:37:17 PM12/18/20
to TortoiseSVN
Hi Tobias,

It is nice to know that I'm not the only one that has been living the same situation.   Here's the answer to your question.

- Are you sure that the backup was complete?
       I think so, because of the size of the svn-repository folder which was 873meg, after the restore the size is the same.  I think my error I did not use SVNAdmin hotcopy <SVN-Repository Folder­>, to do a backup, I have used the explorer backup
- Are you sure that the restore of the backup was fully done?
      I'm pretty sure, because of the size.
- What SVN server do you use?
      I have used Tortoise SVN as a server-based repo to access the folder from the desktop to the laptop SVN-Repository folder,

Thank you Tobias for your help,
Robert

Phil Seakins

unread,
Dec 18, 2020, 10:34:22 PM12/18/20
to TortoiseSVN
FWIW, I had trouble restoring backup copies of the repo. I found there were subfolders which weren't backed up because they were empty and their absence failed the repo integrity. IIRC I got round it by recreating the folders.

Robert Gaudreau

unread,
Dec 28, 2020, 10:14:03 PM12/28/20
to TortoiseSVN
Thank you Phil for sharing your experience, you have made me think about the folder. I must have done last year a branch in the repository that leads to another folder outside the one that I did backup, maybe this is why I've lost the history.
Reply all
Reply to author
Forward
0 new messages