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

Re: Is svndump guaranteed to dump revisions in order of incresing timestamp?

From: Yasuhito FUTATSUKI <futatuki_at_yf.bsdclub.org>
Date: Sun, 20 Dec 2020 16:45:54 +0900

On 2020/12/20 15:08, Eric S. Raymond wrote:
> Is svnadmin dump guaranteed to dump revisions in order of increasing
> timestamp?
> 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
  exit 1
svnadmin create testrepo
cat > testrepo/hooks/pre-revprop-change <<EOF
exit 0
chmod +x testrepo/hooks/pre-revprop-change
svn checkout file://`pwd`/testrepo wc
touch wc/foo.txt
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 mailing list.

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