On Feb 23, 2008, at 21:18, Randy Zauhar wrote:
> On Feb 23, 2008, at 8:43 PM, Ryan Schmidt wrote:
>
>> 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?
>
> I didn't state clearly enough - the version on the server was
> behind my working copy (my working copy had many changes not yet
> committed). svn log indicated there had been only one update to the
> repository, and yet the version number reported on the web view was
> 4. Thus, I assumed something was broken.
Again, that's not necessarily a problem. You can easily have a mixed-
revision working copy where, for example, one folder of your working
copy is at an earlier revision than the rest of the working copy.
And, when you run "svn log" in that folder, it only pulls the log up
to the revision of the folder in the working copy, even if newer
revisions exist in the repository. "svn up" updates the working copy
to the latest revision, enabling you to see the full log when you run
"svn log" in the directory.
>>> 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.
>
> No, I meant that I deleted the directory on the server (it was way
> behind my working copy, anyway).
Ah, ok.
> My plan was to start from scratch, and to more carefully follow
> advice you gave me a while back as to removing the Xcode build
> subdirectory from code control. I tarred my source files from the
> working directory and transferred them to the server.
>
>>> 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.
>
> See above - this is a fresh import.
>
>> 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.
>
> Yes, I have a 'subversion' account., and was logged in as this
> user. I just did a remote log in and checked that 1) Yes, the
> bemSolver08 directory is really gone, and that 2) I can create
> files in the target directory.
>
> As a further test, I just created a directory foo under /tmp, and
> tried to import it:
>
> subversion$ svn import tmp/tmpfoo file:///Users/subversion/Code/foo
> --message "Test import"
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///Users/subversion/Code/foo'
>
>
> Same result.
>
> Given the additional details, is there anything else that I should
> check?
Ok, so then you did actually delete your entire repository. So,
before you can import into it again, you need to recreate it with
"svnadmin create bemSolver08" in the Code directory.
---------------------------------------------------------------------
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 04:29:18 CET