You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Graham Leggett <mi...@sharp.fm> on 2005/02/09 09:46:01 UTC

svn update failed: Can't copy - no such file or directory

Hi,

I have a subversion repository where an attempt to svn update results in
this:

[snip]
A  src/QADLibs/tools/VectorMatrix.cc
A  src/QADLibs/tools/string_array_harness.cc
A  src/QADLibs/tools/int_array.cc
A  src/QADLibs/tools/VectorMatrix.h
subversion/libsvn_wc/log.c:329: (apr_err=155009)
svn: In directory 'src/QADLibs/tools'
subversion/libsvn_subr/io.c:546: (apr_err=2)
svn: Can't copy
'src/QADLibs/tools/.svn/tmp/text-base/Date_array_harness.cc.svn-base' to
'src/QADLibs/tools/Date_array_harness.cc.tmp': No such file or directory

Deleting the QADLibs directory entirely and svn update'ing from scratch
results in the same error.

We suspect that this problem started when a developer working on this code
ran a script to update parts of the source code during a cleanup - which
edited the files in the .svn directory by accident. This was found on
commit, and svn complained that the checksums in the files inside .svn
were wrong. The corrupted directory was deleted, and the changes applied
to just the source, but it's possible that the repository got corrupted
somehow.

Can anyone shed any light on what is happening, or how to fix it?

Regards,
Graham
--


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

Re: svn update failed: Can't copy - no such file or directory

Posted by Philip Martin <ph...@codematters.co.uk>.
"Graham Leggett" <mi...@sharp.fm> writes:

> I have a subversion repository

Do you mean "working copy" rather than "repository"?  If you checkout
a new working copy does the problem persist?

> where an attempt to svn update results in
> this:
>
> [snip]
> A  src/QADLibs/tools/VectorMatrix.cc
> A  src/QADLibs/tools/string_array_harness.cc
> A  src/QADLibs/tools/int_array.cc
> A  src/QADLibs/tools/VectorMatrix.h
> subversion/libsvn_wc/log.c:329: (apr_err=155009)
> svn: In directory 'src/QADLibs/tools'
> subversion/libsvn_subr/io.c:546: (apr_err=2)
> svn: Can't copy
> 'src/QADLibs/tools/.svn/tmp/text-base/Date_array_harness.cc.svn-base' to
> 'src/QADLibs/tools/Date_array_harness.cc.tmp': No such file or directory

Odd, the destination 'Date_array_harness.cc.tmp' has a '.tmp' suffix
that is not present in the source 'Date_array_harness.cc.svn-base'.
When this fails does the working copy remain locked (status 'L')?  If
so please show us the log file '.svn/log' in the locked directory.

Another thing that would help would be for you to run the client under
a debugger, set a breakpoint at io.c:546 and give us a stack trace.

> Deleting the QADLibs directory entirely and svn update'ing from scratch
> results in the same error.

Also odd.

-- 
Philip Martin

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