Package: subversion
Version: 1.6.4dfsg-1
Severity: important
Tags: upstream
Forwarded: http://svn.haxx.se/dev/archive-2009-08/0225.shtml

Another nasty bug in Subversion that leads to a working copy
with missing data and an inconsistent state...

To reproduce it, consider the following script (run it from
an empty directory):

----------------------------------------
#!/bin/sh

set -ex

svnadmin create svn
svn co file://`pwd`/svn wc1
cd wc1
touch foo
svn add foo
svn ci -m 'added foo'
svn cp foo bar
echo blah >> bar
svn ci -m 'foo -> bar'
cd ..
svn co file://`pwd`/svn_at_1 wc2
cd wc2
svn cp foo bar
svn up
svn resolved bar
svn revert bar
svn up
svn st -u
svn ls -v
ls -l
----------------------------------------

Here's the output:

+ svnadmin create svn
++ pwd
+ svn co file:///home/vlefevre/tmp/test/svn wc1
Checked out revision 0.
+ cd wc1
+ touch foo
+ svn add foo
A foo
+ svn ci -m 'added foo'
Adding foo
Transmitting file data .
Committed revision 1.
+ svn cp foo bar
A bar
+ echo blah
+ svn ci -m 'foo -> bar'
Adding bar
Transmitting file data .
Committed revision 2.
+ cd ..
++ pwd
+ svn co file:///home/vlefevre/tmp/test/svn_at_1 wc2
A wc2/foo
Checked out revision 1.
+ cd wc2
+ svn cp foo bar
A bar
+ svn up
   C bar
At revision 2.
Summary of conflicts:
  Tree conflicts: 1
+ svn resolved bar
Resolved conflicted state of 'bar'
+ svn revert bar
Reverted 'bar'
+ svn up
At revision 2.
+ svn st -u
? bar
Status against revision: 2
+ svn ls -v
      2 vlefevre Aug 12 18:02 ./
      2 vlefevre 5 Aug 12 18:02 bar
      1 vlefevre 0 Aug 12 18:02 foo
+ ls -l
total 0
-rw-r--r-- 1 vlefevre vlefevre 0 2009-08-12 18:02:40 bar
-rw-r--r-- 1 vlefevre vlefevre 0 2009-08-12 18:02:39 foo

As you can see, the working copy is declared to be up-to-date,
but its contents don't match those of the repository.

-- System Information:
Debian Release: squeeze/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26.5-20080922 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages subversion depends on:
ii  libapr1                   1.3.8-1        The Apache Portable Runtime Librar
ii  libc6                     2.9-24         GNU C Library: Shared libraries
ii  libsasl2-2                2.1.23.dfsg1-1 Cyrus SASL - authentication abstra
ii  libsvn1                   1.6.4dfsg-1    Shared libraries used by Subversio

subversion recommends no packages.

Versions of packages subversion suggests:
pn  db4.7-util                   <none>      (no description available)
ii  patch                        2.5.9-5     Apply a diff file to an original
ii  subversion-tools             1.6.4dfsg-1 Assorted tools related to Subversi

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to