Re: Is svndump guaranteed to dump revisions in order of incresing timestamp?
On 2020/12/20 15:08, Eric S. Raymond wrote:
> Is svnadmin dump guaranteed to dump revisions in order of increasing
> Another angle on the same question: Is the timestamp of revision N+1
> guaranteed to be not less than the timestamp of N?
> I will add the answer to the dump-stream documentation.
As revison property svn:date can be set to arbitrary date, there is no
guarranty that timestamp is monotonically increasing by revision number,
and svnadmin dump dumps in order of revision number.
Here is a script to make a small example repo.
if [ -e testrepo -o -e wc ]; then
echo testrepo or wc exists
svnadmin create testrepo
cat > testrepo/hooks/pre-revprop-change <<EOF
chmod +x testrepo/hooks/pre-revprop-change
svn checkout file://`pwd`/testrepo wc
svn add wc/foo.txt
svn commit -m 'initial commit' wc
echo foo >> wc/foo.txt
svn commit -m 'secondary commit' wc
svn propset --revprop -r 2 svn:date '1970-01-01T00:00:00.0Z' wc
svnadmin dump testrepo
This can be also occured if we use some tools to import commits
including svnadmin itself.
Yasuhito FUTATSUKI <futatuki_at_yf.bsclub.org>
Received on 2020-12-20 08:48:23 CET
This is an archived mail posted to the Subversion Dev