You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ben Wagner <bw...@itasoftware.com> on 2008/02/20 20:05:29 UTC

replace and revert issue with SVN client

Hi,

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?

Thanks,
Ben


[/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
[/tmp/test]> svn --version
svn, version 1.4.4 (r25188)
    compiled Jun 15 2007, 15:53:52

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet 
(http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
   - handles 'http' scheme
   - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
   - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
   - handles 'file' scheme


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

Re: replace and revert issue with SVN client

Posted by Ryan Schmidt <su...@ryandesign.com>.
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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org