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

[BUG] svn update fails after reverting a modified file to a revision in which it didn't exist

From: Jim Correia <jim.correia_at_pobox.com>
Date: 2004-12-12 02:47:56 CET

If I revert a modified file to a revision in which it didn't exist, it
is "deleted" from the working copy. Since it has modifications, the
actual file isn't delete though. If I delete the file by hand (which
should be ok - it is no longer a version resource), then svn update,
the update files with the message:

svn: Can't copy '.svn/text-base/bar.c.svn-base' to
'.svn/tmp/text-base/bar.c.svn-base.tmp': No such file or directory

(svn cleanup doesn't help, and I'm not sure I would have expected it
to.)

Should I write a bug for the issue tracker? (Or is this message
sufficient?)

I'm using svn, version 1.1.1 (r11581), and a FSFS backend.

Command transcript to reproduce the problem follows.

Thanks,
Jim

$cd /tmp
$mkdir svnbug
$cd svnbug
$svnadmin create repos
$svn co file://localhost/tmp/svnbug/repos wc
Checked out revision 0.
$cd wc
$echo "initial contents" > foo.c
$svn add foo.c
A foo.c
$svn ci -m "added foo.c"
Adding foo.c
Transmitting file data .
Committed revision 1.
$echo "more contents" >> foo.c
$svn ci -m "modified foo.c"
Sending foo.c
Transmitting file data .
Committed revision 2.
$echo "initial contents" > bar.c
$svn add bar.c
A bar.c
$svn ci -m "added bar.c"
Adding bar.c
Transmitting file data .
Committed revision 3.
$echo "more contents" >> bar.c
$svn ci -m "modified bar"
Sending bar.c
Transmitting file data .
Committed revision 4.
$svn up -r PREV bar.c
U bar.c
Updated to revision 3.
# now we modify bar
$echo "more contents" >> bar.c
# now we update bar to its previous, in which it didn't exist
$svn up -r PREV bar.c
D bar.c
Updated to revision 2.
# bar.c still exists, because it was modified
$ls -l bar.c
-rw-r----- 1 correia wheel 31 11 Dec 20:42 bar.c
# bar.c isn't under version control
svn info bar.c
bar.c: (Not a versioned resource)
# so we delete it
$rm bar.c
# now svn up will fail
$svn up .
svn: Can't copy '.svn/text-base/bar.c.svn-base' to
'.svn/tmp/text-base/bar.c.svn-base.tmp': No such file or directory

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Dec 12 02:50:17 2004

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.