开发者

TortoiseSVN import - can't authenticate?

I am trying to cr开发者_Python百科eate a new project on my SUBVERSION repository.

So, I've got my files on my local machine:

C:\projects\myProject

Right click on myProject folder, then I choose TORTOISE SVN -> Import...

In the URL of repository i put:

https://my.svn.server/myProject

Note: myProject does not exist yet in my repository, as far as I understand the import command should create this new project and commit everything from myProject folder as version 0

Then i click OK. TortoiseSVN promts for login and password.

I put my login and password (which I am sure is correct, becouse I use it to update/commit to another project in this repository) and.. it promts me again.. so I put it again in.. and again.. until after 5 tries I get error:

OPTIONS of 'https://my.svn.server/myProject': authorization failed: Could not authenticate to server: rejected Basic challenge (https://my.svn.server)

What am I doing wrong?

UPDATE:

I am trying to log in with a user/password that works for my other repository/project (that is on the same server). I assumed that SUBVERSION users work for all repositories on the serwer.

If that assumtion is wrong, please point me: where can I add new user info for SUBVERSION repository?


I guess, you're using import in a wrong direction. IIRC, import is used on the server to import a bunch of files directly.

The way you're using it, you try to import the contents of https://my.svn.server/myProject (which is the repo, if I'm right) into your working copy (C:\projects\myProject).

What you probably want is:

svn checkout https://my.svn.server/myProject C:/projects/myProject
svn add [your files here]
svn commit

EDIT:
If you just created a new repo on the server, you probably have to edit the conf/authz file to be able to access the repo:

[/path/to/project]
your_username = rw
@readonly_group = r


Did you try accessing that URL with a web browser first? You can try out your login and password that way.

If it doesn't work, then contact the administrator of your Subversion repository and reconfirm your login details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜