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

FSFS bug with mixed revision commit

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2005-05-16 23:11:15 CEST

Hi,

Below is a reproduction recipe for what I think is a bug in FSFS. That's
the bug that got triggered by r14738. It copies a dir at revision 1 with a
file at revision 2 that is also modified. Any suggestions?

Script started on Mon May 16 22:57:53 2005
pl@fnapp:~/svntest$ svnadmin create repo
pl_at_fnapp:~/svntest$ export R=file://`pwd`/repo
pl@fnapp:~/svntest$ svn co $R wc
Checked out revision 0.
pl@fnapp:~/svntest$ cd wc
pl@fnapp:~/svntest/wc$ svn mkdir a
A a
pl@fnapp:~/svntest/wc$ touch a/f
pl@fnapp:~/svntest/wc$ svn add a/f
A a/f
pl@fnapp:~/svntest/wc$ svn ci -m m
Adding a
Adding a/f
Transmitting file data .
Committed revision 1.
pl@fnapp:~/svntest/wc$ echo hej > a/f
pl@fnapp:~/svntest/wc$ svn ci -m m
Sending a/f
Transmitting file data .
Committed revision 2.
pl@fnapp:~/svntest/wc$ svn up -r1
U a/f
Updated to revision 1.
pl@fnapp:~/svntest/wc$ svn up a/f
U a/f
Updated to revision 2.
pl@fnapp:~/svntest/wc$ echo hoj > a/f
pl@fnapp:~/svntest/wc$ cat a/.svn/entries
<?xml version="1.0" encoding="utf-8"?>
<wc-entries
   xmlns="svn:">
<entry
   committed-rev="1"
   name=""
   committed-date="2005-05-16T21:01:18.163235Z"
   url="file:///home/pl/svntest/repo/a"
   last-author="pl"
   kind="dir"
   uuid="0481dc85-3ff7-0310-b897-b2de7fd6f6d2"
   revision="1"/>
<entry
   committed-rev="2"
   name="f"
   text-time="2005-05-16T21:02:06.000000Z"
   committed-date="2005-05-16T21:01:45.385369Z"
   checksum="ff961dc5e8da688fa78540651160b223"
   last-author="pl"
   kind="file"
   prop-time="2005-05-16T21:02:06.000000Z"
   revision="2"/>
</wc-entries>
pl@fnapp:~/svntest/wc$ svn cp a $R/b -m 'mixed wc copy'
subversion/libsvn_client/copy.c:544: (apr_err=160004)
svn: Commit failed (details follow):
subversion/libsvn_fs_fs/fs_fs.c:1973: (apr_err=160004)
svn: Invalid change ordering: new node revision ID without delete
pl@fnapp:~/svntest/wc$
Script done on Mon May 16 23:03:02 2005

Thanks,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon May 16 23:02:56 2005

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