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

Re: problem with dump/load

From: Féliciano Matias <feliciano.matias_at_free.fr>
Date: 2002-07-13 08:22:50 CEST

Le sam 13/07/2002 à 06:16, Féliciano Matias a écrit :
> first, excuse my poor english.
>
> svn r2464 with --enable-utf8
> db 4.0.14
> libapr 2002.06.25
> neon 0.21.2
>
> [...}
>
> * some files are now empty !
>

I found a procedure to reproduce this problem.

[f.matias@one tmp]$ svnadmin create repos_ref2
[f.matias_at_one tmp]$ svn co file:///home/f.matias/tmp/tmp/repos_ref2 -d
ref2
[f.matias@one tmp]$ cd ref2

* Create a binary file. there is no problem with a text file.

[f.matias@one ref2]$ echo "coucou" | bzip2 > foo.bz2
[f.matias@one ref2]$ svn add foo.bz2
[f.matias@one ref2]$ svn commit foo.bz2 -m ""
[f.matias@one ref2]$ svn mv foo.bz2 oof.bz2
[f.matias@one ref2]$ svn commit oof.bz2 -m ""
[f.matias@one ref2]$ svn commit -m ""
[f.matias@one ref2]$ cd ..

* dump

[f.matias@one tmp]$ svnadmin dump repos_ref2/ > dump_ref2.txt

* check the dump.

[f.matias@one tmp]$ mkdir repos_copy2
[f.matias@one tmp]$ svnadmin create repos_copy2/
[f.matias@one tmp]$ cat dump_ref2.txt | svnadmin load repos_copy2/
[f.matias_at_one tmp]$ svn co file:///home/f.matias/tmp/tmp/repos_copy2/ -d
copy2
[f.matias@one tmp]$ ll copy2/oof.bz2
-rw-r--r-- 1 f.matias users 0 jui 13 07:42 copy2/oof.bz2

* the file is empty.

I look closer to a dump with a text file in the repository and one with
a binary file :

* when the rename is proceed on a text file :
> Node-path: oof
> Node-kind: file
> Node-action: add
> Node-copyfrom-rev: 1
> Node-copyfrom-path: /foo
>
>
> Revision-number: 3
> Content-length: 102
>
> K 7
> svn:log
> V 0
>
> K 10
> svn:author
> V 8
> f.matias
> K 8
> svn:date
> V 27
> 2002-07-13T05:32:41.329860Z
> PROPS-END
>
> Node-path: foo
> Node-action: delete

* when the rename is proceed on a binary file :

> Node-path: oof.bz2
> Node-kind: file
> Node-action: add
> Node-copyfrom-rev: 1
> Node-copyfrom-path: /foo.bz2

* this lines doesn't exist with a text file.
> Content-length: 59
>
> K 13
> svn:mime-type
> V 24
> application/octet-stream
> PROPS-END

>
>
> Revision-number: 3
> Content-length: 102
>
> K 7
> svn:log
> V 0
>
> K 10
> svn:author
> V 8
> f.matias
> K 8
> svn:date
> V 27
> 2002-07-13T05:37:20.252954Z
> PROPS-END
>
> Node-path: foo.bz2
> Node-action: delete

* I see something similar when changing properties :

[f.matias@one tmp]$ mkdir repos_ref3
[f.matias@one tmp]$ svnadmin create repos_ref3
[f.matias@one tmp]$ mkdir ref3
[f.matias_at_one tmp]$ svn co file:///home/f.matias/tmp/tmp/repos_ref3 -d
ref3
[f.matias@one tmp]$ cd ref3
[f.matias@one ref3]$ echo "coucou" > foo
[f.matias@one ref3]$ svn add foo
[f.matias@one ref3]$ svn commit -m ""
[f.matias@one ref3]$ svn propset svn:executable on foo
[f.matias@one ref3]$ svn commit -m ""
[f.matias@one ref3]$ cd ..
[f.matias@one tmp]$ svnadmin dump repos_ref3 > dump_ref3.txt
[f.matias@one tmp]$ mkdir repos_copy3
[f.matias@one tmp]$ svnadmin create repos_copy3
[f.matias@one tmp]$ svnadmin load repos_copy3 < dump_ref3.txt
[f.matias@one tmp]$ mkdir copy3
[f.matias_at_one tmp]$ svn co file:///home/f.matias/tmp/tmp/repos_copy3/ -d
copy3
[f.matias@one tmp]$ ls -l copy3/foo
-rwxr-xr-x 1 f.matias users 0 jui 13 08:13 copy3/foo

* empty ...

SVN-fs-dump-format-version: 1

Revision-number: 0
Content-length: 56

K 8
svn:date
V 27
2002-07-13T05:27:43.932980Z
PROPS-END

Revision-number: 1
Content-length: 102

K 7
svn:log
V 0

K 10
svn:author
V 8
f.matias
K 8
svn:date
V 27
2002-07-13T05:31:25.272140Z
PROPS-END

Node-path: foo
Node-kind: file
Node-action: add
Content-length: 17

PROPS-END
coucou

Revision-number: 2
Content-length: 102

K 7
svn:log
V 0

K 10
svn:author
V 8
f.matias
K 8
svn:date
V 27
2002-07-13T05:32:20.763269Z
PROPS-END

Node-path: oof
Node-kind: file
Node-action: add
Node-copyfrom-rev: 1
Node-copyfrom-path: /foo

Revision-number: 3
Content-length: 102

K 7
svn:log
V 0

K 10
svn:author
V 8
f.matias
K 8
svn:date
V 27
2002-07-13T05:32:41.329860Z
PROPS-END

Node-path: foo
Node-action: delete

SVN-fs-dump-format-version: 1

Revision-number: 0
Content-length: 56

K 8
svn:date
V 27
2002-07-13T05:33:56.082619Z
PROPS-END

Revision-number: 1
Content-length: 102

K 7
svn:log
V 0

K 10
svn:author
V 8
f.matias
K 8
svn:date
V 27
2002-07-13T05:36:16.832627Z
PROPS-END

Node-path: foo.bz2
Node-kind: file
Node-action: add
Content-length: 104

K 13
svn:mime-type
V 24
application/octet-stream
PROPS-END
BZh91AY&SYè ¿á
wü

Revision-number: 2
Content-length: 102

K 7
svn:log
V 0

K 10
svn:author
V 8
f.matias
K 8
svn:date
V 27
2002-07-13T05:37:06.991305Z
PROPS-END

Node-path: oof.bz2
Node-kind: file
Node-action: add
Node-copyfrom-rev: 1
Node-copyfrom-path: /foo.bz2
Content-length: 59

K 13
svn:mime-type
V 24
application/octet-stream
PROPS-END

Revision-number: 3
Content-length: 102

K 7
svn:log
V 0

K 10
svn:author
V 8
f.matias
K 8
svn:date
V 27
2002-07-13T05:37:20.252954Z
PROPS-END

Node-path: foo.bz2
Node-action: delete

SVN-fs-dump-format-version: 1

Revision-number: 0
Content-length: 56

K 8
svn:date
V 27
2002-07-13T06:04:56.542446Z
PROPS-END

Revision-number: 1
Content-length: 102

K 7
svn:log
V 0

K 10
svn:author
V 8
f.matias
K 8
svn:date
V 27
2002-07-13T06:07:25.202657Z
PROPS-END

Node-path: foo
Node-kind: file
Node-action: add
Content-length: 17

PROPS-END
coucou

Revision-number: 2
Content-length: 102

K 7
svn:log
V 0

K 10
svn:author
V 8
f.matias
K 8
svn:date
V 27
2002-07-13T06:09:37.492591Z
PROPS-END

Node-path: foo
Node-kind: file
Node-action: change
Content-length: 37

K 14
svn:executable
V 2
on
PROPS-END

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 13 08:25:11 2002

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.