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

Re: Switch a file to a dir: can't switch it back to the file

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-09-23 01:50:59 CEST

C.Michael Pilato wrote:
> Julian Foad <julianfoad@btopenworld.com> writes:
>
>>This can't be right. Any ideas? Reproduction script and its output
>>are below; the error is right at the end of the output.
>
> [...]
>
>>+ svn switch file:///home/julianfoad/tmp/svn-switch-test/repos/f f
>>/home/julianfoad/src/subversion/subversion/libsvn_repos/delta.c:209: (apr_err=160005)
>>svn: Invalid filesystem path syntax
>>svn: svn_repos_dir_delta: invalid editor anchoring; at least one of
>>the input paths is not a directory and there was no source entry
>
> Nope, something's definitely wrong there. You should be able to work
> around this by switching the parent directory to itself, but yeah,

That doesn't seem to work. I forgot to mention that deleting the offending item and then trying to update doesn't work either.

~/tmp/svn-switch-test> svn switch $REPOS wc
/home/julianfoad/src/subversion/subversion/libsvn_fs/tree.c:283: (apr_err=160013)
svn: Filesystem has no item
svn: file not found: revision '1', path '/d/f'

~/tmp/svn-switch-test> cd wc
~/tmp/svn-switch-test/wc> rm -rf f
~/tmp/svn-switch-test/wc> svn up
/home/julianfoad/src/subversion/subversion/libsvn_wc/props.c:200: (apr_err=2)
svn: No such file or directory
svn: save_prop_file: can't open propfile
/home/julianfoad/src/subversion/subversion/libsvn_subr/io.c:1435: (apr_err=2)
svn: svn_io_file_open: can't open 'f/.svn/tmp/dir-props'

> this is a code-path not well-tested. The failure is likely based on
> the differences in the ways that dirs and files are translated into
> anchors/targets for editor operations.

OK - I'll file a bug report unless you think you (or I) can fix it quickly.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 23 01:50:50 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.