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

Re: replace and revert issue with SVN client

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Thu, 21 Feb 2008 01:09:35 -0600

On Feb 20, 2008, at 14:05, Ben Wagner wrote:

> I am posting to this list to follow the "Buddy System" for filing
> new bugs, following the instructions on this page:
> http://subversion.tigris.org/project_issues.html
>
> Below is a transcript of the issue that I am seeing. The bug seems
> to happen after a sequence like this:
> svn rm foo.txt
> svn cp -r 157170 $REPO_PATH/foo.txt foo.txt
> svn revert foo.txt
>
> After this, I would expect foo.txt to be back to the state of my
> last checkout, but it seems that any modifications that I make can
> not be committed.
>
> Do you agree that this is a bug?

Yes, and I can reproduce it with Subversion 1.4.6 on Mac OS X 10.4.11
Intel:

$ svnadmin create repo
$ REPO=file://$PWD/repo
$ svn co $REPO wc
Checked out revision 0.
$ cd wc
$ echo foo > foo.txt
$ svn add foo.txt
A foo.txt
$ svn ci -m "test"
Adding foo.txt
Transmitting file data .
Committed revision 1.
$ echo bar > foo.txt
$ svn ci -m "test"
Sending foo.txt
Transmitting file data .
Committed revision 2.
$ svn rm foo.txt
D foo.txt
$ svn cp -r 1 $REPO/foo.txt foo.txt
A foo.txt
$ svn st
R + foo.txt
$ svn revert foo.txt
Reverted 'foo.txt'
$ svn st
$ echo baz > foo.txt
$ svn ci -m "test"
Sending foo.txt
Transmitting file data .svn: Commit failed (details follow):
svn: Base checksum mismatch on 'foo.txt':
    expected: d3b07384d113edec49eaa6238ad5ff00
      actual: c157a79031e1c40f85931829bc5fc552

$

> [/tmp]> echo $REPO_PATH
> svn+ssh://svn.my.server.com/path/to/test
> [/tmp]> svn co $REPO_PATH
> Checked out revision 157167.
> [/tmp]> cd test
> [/tmp/test]> echo foo > foo.txt
> [/tmp/test]> svn add foo.txt
> A foo.txt
> [/tmp/test]> svn ci -m "test"
> Adding foo.txt
> Transmitting file data .
> Committed revision 157169.
> [/tmp/test]> echo bar > foo.txt
> [/tmp/test]> svn ci -m "test"
> Sending foo.txt
> Transmitting file data .
> Committed revision 157171.
> [/tmp/test]> svn rm foo.txt
> D foo.txt
> [/tmp/test]> svn cp -r 157170 $REPO_PATH/foo.txt foo.txt
> A foo.txt
> [/tmp/test]> svn revert foo.txt
> Reverted 'foo.txt'
> [/tmp/test]> echo baz > foo.txt
> [/tmp/test]> svn ci -m "test"
> Sending foo.txt
> Transmitting file data .svn: Commit failed (details follow):
> svn: Checksum mismatch for '/tmp/test/.svn/text-base/foo.txt.svn-
> base'; expected 'd3b07384d113edec49eaa6238ad5ff00', actual:
> 'c157a79031e1c40f85931829bc5fc552'
> exit status: 1

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-21 08:10:01 CET

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

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