[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] svnadmin build-repcache command

From: Denis Kovalchuk <denis.kovalchuk_at_visualsvn.com>
Date: Wed, 18 Mar 2020 17:32:43 +0300

Hello.

I would like to suggest an implementation of ‘svnadmin build-repcache’
command

that allows to process data in the specified revision range and add missing
entries

to the representation cache. It may be useful for admins who had disabled
the

rep-sharing option or deleted the rep-cache.db file [1]. An idea of having
such

command has been previously discussed in [2].

The implementation iterates over revisions in the specified range and
recursively

processes the changed nodes, starting from the corresponding revision roots.

For each changed node, it ensures that its data and property representations

exist in the rep-cache. The nodes are processed in the same order as when

committing a transaction, so that the rep-cache.db files are fully
consistent.

If a repository does not support the rep-sharing or rep-sharing is disabled,

then do nothing.

I have attached a patch with the implementation of the command.

[1] https://svn.haxx.se/users/archive-2014-01/0128.shtml

[2] https://svn.haxx.se/dev/archive-2018-08/0050.shtml

Regards,

Denis Kovalchuk

Received on 2020-03-18 15:33:04 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.