You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "Bert Huijben (TCG)" <b....@competence.biz> on 2008/06/03 06:45:04 UTC

svn update --depth=empty WC corruption issue

                Hi,

 

Using current 1.5.x (@31482) and a public collabnet subversion server on
1.4.3:

 

# svn co http://ankhsvn.open.collab.net/svn/ankhsvn/trunk/src/Ankh/Commands/
commands

. <snip>.. (username guest, password empty) .

A commands\AddItemCommand.cs

.

Checked out revision 4217.

# cd commands

# svn up -r 3900 --depth=empty AddItemCommand.cs

At revision 3900.

# svn up

svn: Checksum mismatch for 'AddItemCommand.cs'; expected:
'111f5de9b72e194b711b8

973ff8f37b1', actual: '29536039df6a7786a01c3d161693e44b'

 

The file did modify between r4219 and r3900, but I see no notification of
that change, but the working copy file changed and is actually back to the
latest version after the last update (the failed one)

 

# svn log --limit 3 -q AddItemCommand.cs

------------------------------------------------------------------------

r3980 | rhuijben | 2008-04-24 12:24:53 +0200 (do, 24 apr 2008)

------------------------------------------------------------------------

r3902 | rhuijben | 2008-04-16 14:28:20 +0200 (wo, 16 apr 2008)

------------------------------------------------------------------------

r3878 | sander | 2008-04-15 16:40:52 +0200 (di, 15 apr 2008)

------------------------------------------------------------------------

 

                Bert

 

(Originally reported by sander / mac|giver on the AnkhSVN project)


Re: svn update --depth=empty WC corruption issue

Posted by Karl Fogel <kf...@red-bean.com>.
"Bert Huijben (TCG)" <b....@competence.biz> writes:
> Using current 1.5.x (@31482) and a public collabnet subversion server
> on 1.4.3:
>
> # svn co http://ankhsvn.open.collab.net/svn/ankhsvn/trunk/src/Ankh/Commands/
> commands
>
> ? <snip>.. (username guest, password empty) ?
>
> A commands\AddItemCommand.cs
>
> ?
>
> Checked out revision 4217.
>
> # cd commands
>
> # svn up -r 3900 --depth=empty AddItemCommand.cs
>
> At revision 3900.
>
> # svn up
>
> svn: Checksum mismatch for 'AddItemCommand.cs'; expected:
> '111f5de9b72e194b711b8
>
> 973ff8f37b1', actual: '29536039df6a7786a01c3d161693e44b'

Yes, this is an expected bug (because you used --depth=empty on a file).
We've already fixed this in r31516; the fix may not be in 1.5.0, but it
will be in 1.5.1 and future releases.

That is, it's still incorrect to use --depth=empty on a file, but after
r31516, doing so will no longer have an effect on your working copy, and
you won't get lossage like the above.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org