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

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

From: <kfogel_at_collab.net>
Date: 2004-12-13 16:53:15 CET

Jim Correia <jim.correia@pobox.com> writes:
> 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?)

Yup -- if you could file a bug, include your (excellent) repro recipe,
and link to this thread, that would be great, thanks.

By the way, glancing at the repro recipe, I think it might be possible
to narrow it down to fewer steps and still get the same error. If you
don't have time/inclination to try that, it's okay, though. The
recipe is quite effective as it is.

-Karl

> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 13 17:01:32 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.