Ryan Schmidt wrote:
> On May 11, 2009, at 07:21, Marcin M. Jessa wrote:
>
>> Due to file system errors I lost one ASCII text file -
>> my_repository/db/revs/420
>> Is there any way to recreate this file?
>
> Restore that file from your backups. If you don't have a backup, the
> data may be irretrievably lost. This is why it is important to make
> backups...
>
I agree. For my defense I am trying to clean up someone else's mess and
no backups were taken...
>> If not, would it be possible to create a dump of the repository from
>> rev. number 421 to 509 (my last revision) and to create a new repository
>> based on that dump?
>
> Not necessarily, since one or more revisions between 421 and 509 may
> be based on the missing revision 420. But you can try:
>
> svnadmin dump -r 421:509 /path/to/repos > dumpfile
Unfortunately this does not work. I have tried that before:
# svnadmin dump -r 421:509 /home/svn/repos/foo_repo > repo_dump
svnadmin: Reference to non-existent node '234.2i.r420/189288671' in
filesystem '/home/svn/repos/foo_repo/db'
>> I also have an older check out, up to rev. 462 but I cannot figure out
>> how to use it to create a new repository and at the same time keep the
>> revision history.
>
> It is not possible. A working copy does not contain the entire
> repository history. It only contains the specific revisions of files
> that were checked out, in this case r462 (for at least some of the files).
Shouldn't it be fairly easy to recreate a text file like that? Valuable
data may be lost because of a bagatelle like that...
Maybe there is a way to create a "dummy" r420 file and "fool" the
system? Or just renumber commits so 421 becomes 420 ?
Cheers,
Marcin
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2205943
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-12 08:46:37 CEST