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

Re: Import problem

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Sat, 23 Feb 2008 19:43:31 -0600

On Feb 23, 2008, at 10:26, zauhar wrote:

> I am using subversion 1.4.6 on OS X. I am using apache to serve the
> repositories to clients. I am using Xcode, which has caused trouble
> (failing to exclude 'build' from version control, etc)
>
> Somehow a directory (bemSolver08) I had under code control got
> messed up - when I looked at the directory through a browser it was
> reported as Version 4, but executing 'svn log' from the client
> shows version 1!

Not necessarily unusual. Have you run "svn up" in that directory to
update it to the current version?

> For this reason (I think) it was refusing to commit changes. At
> this point I am a newbie with subversion, and my 'solution' was to
> delete the directory bemSolver08 from my Code repository on the
> server. I did this brutally, as 'rm -fr bemSolver08' .

Well.... that would remove it from the working copy, not from the
repository.

> OK - I rebuilt my directory for import as follows:
>
> subversion$ ls /tmp/tmpbemSolver08
> branches tags trunk
>
> (All the source code is under 'trunk'.)
>
> Now I try to import, and get this error:
>
> subversion$ svn import /tmp/tmpbemSolver08 file:///Users/subversion/
> Code/bemSolver08 --message "Initial bemSolver08 import"
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///Users/subversion/Code/
> bemSolver08'
>
> I see tons of messages from folks about this error, but it always
> seems to stem from reversing the positions of code to be imported
> and the repository, or in not having three slashes after file: . I
> seem to have all that correct, and I have used this same syntax
> recently with no problem.

As per above, I assume this directory is still in the repository, so
you don't need to (and can't) import it again. Just go to the
directory that bemSolver08 was in before you rm -fr'd it and run "svn
up bemSolver08" to download it again from the repository.

If you do for some reason need to import this or something else
again, the error message could mean many things (which is why you see
it posted often). It could mean you don't have permission to access
it. Are you the user "subversion" on your system? If you're not, do
you have permission to access things in /Users/subversion? If you
don't, then you can't import or commit things there.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-24 02:44:04 CET

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.