ezdrt
asked on
Subversion
Sebversion with apache on Ubuntu is up and running and now I am trying to import file(s) from a local drive into the repository. The following error comes up:
svn: Unable to open an ra_local session to URL
The command used to import:
svn import /subversion/project/test file:///test -m "Initial Import"
It gives me the above error. Subversion is set up on Ubuntu and I am able to import it from online source for example http://google.com/subersion/someproject. The whole thing is configured and I am logged in as root.
Thanks.
svn: Unable to open an ra_local session to URL
The command used to import:
svn import /subversion/project/test file:///test -m "Initial Import"
It gives me the above error. Subversion is set up on Ubuntu and I am able to import it from online source for example http://google.com/subersion/someproject. The whole thing is configured and I am logged in as root.
Thanks.
Woops there is a typo in my first example, didn't use complete repo path for the import test, so here is the Doesn't work way again :)
[root@broken ~]# svn import /svn/test2 file:///test -m "initial import"
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///test'
ASKER
I am not sure what I am doing wrong but it still does not work ...
svn import /svn/testproject file:///svn/testproject/te stfile -m "initial import"
Part that is
When I replace it with the web link it is fine but when I try to use it with files that are on the hard drive it does not. My folders are like this:
[subversion] -> [project] -> [test]
I did svnadmin create /subversion/project/test it added test folder with bunch of files in it which is what it should do. Folder test did not exits before.
but when I try to run svn import it gives me that wired error. I tried full path like you have said. Still gives me the same error. Anything else I should try?
svn import /svn/testproject file:///svn/testproject/te
Part that is
file:///svn/testproject/tedoes not work.stfile
When I replace it with the web link it is fine but when I try to use it with files that are on the hard drive it does not. My folders are like this:
[subversion] -> [project] -> [test]
I did svnadmin create /subversion/project/test it added test folder with bunch of files in it which is what it should do. Folder test did not exits before.
but when I try to run svn import it gives me that wired error. I tried full path like you have said. Still gives me the same error. Anything else I should try?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This worked perfectly ... not really sure what I did wrong.
You didn't point it to an actual file, you were just pointing to the repo directory :) In that last example you created a new file, 'myfile', and then imported that into the repo.
Basically you were trying to import the root repo directory into the repo :p
Basically you were trying to import the root repo directory into the repo :p
ASKER
Very helpful! Prompt response.
Doesn't work:
Open in new window
Works:Open in new window