简体   繁体   English

在Subversion上创建本地存储库的URL

[英]URL for creating local repository on Subversion

I want to create a new Subversion repository through Aptana Studio. 我想通过Aptana Studio创建一个新的Subversion存储库。 Both Aptana SVN plugin and Aptana Subversive plugins are installed. 安装了Aptana SVN插件和Aptana Subversive插件。 I am not following what URL to give as I want to create the repository on localhost. 我没有关注要提供的URL,因为我想在localhost上创建存储库。

Please see this link: http://screencast.com/t/qVn3OvWqL 请看这个链接: http//screencast.com/t/qVn3OvWqL

You must create the repository before you can checkout from it. 您必须先创建存储库, 然后才能从中签出。 This is a mdifference to DVCSes. 这是对DVCS的差异。 So to create. 所以要创造。 Usually Plugins are not able to create repositories(as you need local access to server). 通常,插件无法创建存储库(因为您需要本地访问服务器)。

If you have TortoiseSVN just browse to the directory where your repository should be, in your case: 如果您有TortoiseSVN,只需浏览到您的存储库所在的目录,在您的情况下:

d:\subversionrepository\prazact_website

If you use TortoiseSVN: 如果你使用TortoiseSVN:

right click on folder "prazact_website"  -> "TortoiseSVN" -> "create Repository here"

If you use Commandline: 如果您使用Commandline:

svnadmin create d:\subversionrepository\prazact_website

If you created the repository, you can now connect with the above mentioned URL: 如果您创建了存储库,现在可以使用上面提到的URL进行连接:

file:///d:/subversionrepository/prazact_website

Normally this is where you provide the url via which other clients (including yours) can access this repository. 通常,您可以在此处提供其他客户端(包括您的客户端)可以访问此存储库的URL。 SVN repositories can be accessed via various access protocols: 可以通过各种访问协议访问SVN存储库:

  1. svn (svn://) svn(svn://)
  2. http (http://) http(http://)
  3. local file access protocol (file:///) 本地文件访问协议(文件:///)

If you have a central repository location where all your repo's are located, and you want to create your repo in the same location, then you can click on the browse button. 如果您有一个中央存储库位置,您所有的存储库都位于该位置,并且您想在同一位置创建存储库,则可以单击“浏览”按钮。 It will help you see the repository root used by your SVN administrator. 它将帮助您查看SVN管理员使用的存储库根目录。 BUt if this is a private repository and you want to create it on your own local host, try the file:/// protocol.The way to specify is this - file:///d:/mysvndir/rohit_repo 如果这是一个私有存储库而你想在你自己的本地主机上创建它,请尝试使用file:/// protocol。指定的方法是这样的 - file:/// d:/ mysvndir / rohit_repo

I had this same problem and found that the version of the svn connector DOES matter. 我有同样的问题,发现svn连接器的版本很重要。

On my Mac it meant going into Eclipse > Preferences > Team > SVN 在我的Mac上,它意味着进入Eclipse > Preferences > Team > SVN

And then inside of the "SVN Connector" tab I selected the " SVNKit 1.3.5 r7406 (for SVN 1.6.15, all platforms) " connector and hit "apply". 然后在“SVN连接器”选项卡内部,我选择了“ SVNKit 1.3.5 r7406(适用于SVN 1.6.15,所有平台) ”连接器并点击“应用”。

This fixed it for me, by default it was on the SVN 1.5.6 version which if you just installed SVN you are likely not on that older branch/release. 这对我来说是固定的,默认情况下它是在SVN 1.5.6版本上 ,如果你刚刚安装了SVN,你很可能不在那个旧的分支/版本上。

Make sure the connector version matches the version of SVN you have installed. 确保连接器版本与您安装的SVN版本相匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM