Soo, here is an output of sql request:

% sqlite3 rep-cache.db '.header on' 'SELECT * FROM rep_cache WHERE revision = 
7449'
hash|revision|offset|size|expanded_size
a684c1201230ed000e8baf11fcd890efebb059db|7449|3|106064003|111204465


And here is 7449 file size

% ls -l revs/7/7449
-r--r--r--. 1 apache apache 106067461 Feb  4  2021 revs/7/7449


Now, what about "links" to 7449 in revisions after 7449. There is something in 
7450:

% strings revs/7/7450 | tail -7
copyroot: 0 /
minfo-cnt: 61
_7.0.t7449-67p add-dir false false false 
/trunk/ProjectB/Art/Characters/Survivors/01/textures/substance_render
_9.0.t7449-67p add-file true true false 
/trunk/ProjectB/Art/Characters/Survivors/01/textures/substance_render/01_render.spp
L2P-INDEX
P2L-INDEX
51995736 59c66b6d95365e6bdb4be4ec3b2d3a34 51995799 
72059006b7c456b03efb7f07e0557795S


% strings revs/7/7450 | grep 7449
text: 7450 3 51992815 54791207 b326aa3b7fd0ea02b8e75ac8a8dcc656 
1430895ca8250cfb117997d6ee543e7e2c06c265 7449-67p/_b
props: 2 757 65 53 113136892f2137aa0116093a524ade0b - 7449-67p/_d
DELTA 7449 11 138
pred: 4-7052.0.r7449/12
pred: 3-6161.0.r7449/14
DELTA 7449 15 24
pred: 2-6160.0.r7449/16
DELTA 7449 17 20
pred: 1-6132.0.r7449/18
DELTA 7449 19 25
pred: 3-232.0.r7449/20
DELTA 7449 21 25
pred: 0.0.r7449/2
_7.0.t7449-67p add-dir false false false 
/trunk/ProjectB/Art/Characters/Survivors/01/textures/substance_render
_9.0.t7449-67p add-file true true false 
/trunk/ProjectB/Art/Characters/Survivors/01/textures/substance_render/01_render.spp


And there is no "links" to 7449 in 7451 revision and after it, BUT I still 
can't dump these revisions. Maybe because of "chain" of "links". Like 7449 <- 
7450 <- 7451 etc.?

% svnadmin dump /var/repo_serpico -r7450 > ~/sdb/test.dump
svnadmin: E160004: Corrupt representation '7449 21 25 159 
24ad3bd9d7945c1c7ca3f5e714ea868e - -'
svnadmin: E160004: Invalid r7449 footer

% svnadmin dump /var/repo_serpico -r7451 > ~/sdb/test.dump
svnadmin: E160004: Corrupt representation '7449 21 25 159 
8f3d18747d3388ff2b35096cafbd57ab - -'
svnadmin: E160004: Invalid r7449 footer


--
Dmitry Minsky

> On 28.06.2022, at 15:50, Daniel Shahaf <d...@daniel.shahaf.name> wrote:
> 
> Dmitry Minsky wrote on Tue, 28 Jun 2022 13:18 +00:00:
>>> What does the "folder with files" contain?
>> 
>> Just a random files on my computer ;) It’s not from working copy or 
>> repository or anything else meaningful. Let’s assume that it’s just a 
>> bunch of random files which I want to put in the middle of repo and 
>> hope that it won’t blow up ;) Is that possible?
> 
> With enough effort, yes.
> 
> Devs: In attempting to recreate db/revs/7/7449, what needs to be
> matched? Off the top of my head, it's rep-cache.db references, actual
> rep-sharing references in future rev files, and possibly node-rev id's.
> Anything else?
> 
> What's the output of «sqlite3 rep-cache.db '.header on' 'SELECT * FROM
> rep_cache WHERE revision = 7449'»?
> 
> Does any rev file after 7449 contain " 7449 " on a "text:" or
> "props:" line?
> 
> Does any rev file after 7449 contain ".7449/"?
> 
> Daniel
> 
>>> On 28.06.2022, at 15:14, Daniel Shahaf <d...@daniel.shahaf.name> wrote:
>>> 
>>> Dmitry Minsky wrote on Tue, 28 Jun 2022 11:01 +00:00:
>>>> Ok. I’m pretty sure that db/revs/7/7449 is just truncated. Since there 
>>>> aren’t any signs of any text readable data at the bottom of the file 
>>>> and the top of file looks similar to 7448, 7450 and to any other 
>>>> revision. 
>>>> 
>>>> So, let’s say I’m 85.23% sure about content of this particular 
>>>> revision. How can I recreate revision from folder with files? This rev 
>>>> contains only add-dir and add-file changes. 
>>> 
>>> What does the "folder with files" contain?
>>> 
>>> Is it a working copy?  A repository?  An export?  None of the above?
>>> 
>>> Does it contain exactly the files and directories added in r7449 *as
>>> they were in that revision*, and nothing else?

Reply via email to