简体   繁体   English

无法在Windows服务器上物理上找到svn目录

[英]unable to locate svn directory physically on windows server

I have just successfully installed the subversion in windows server 2008 i can checkout the directory from my client machine svn://ip/test but i am unable to locate test directory on server. 我刚刚在Windows Server 2008中成功安装了Subversion,我可以从客户端计算机svn:// ip / test中检出目录,但无法在服务器上找到测试目录。

Repository in F:\\SvnRepository and conf folder in F:\\SvnRepository\\conf and binaries are in C:\\Program Files (x86)\\Subversion F:\\ SvnRepository中的存储库和F:\\ SvnRepository \\ conf中的conf文件夹,二进制文件位于C:\\ Program Files(x86)\\ Subversion中
Created directory by executing the command svn mkdir svn://localhost/test . 通过执行命令svn mkdir svn://localhost/test创建目录。

The svn repository cannot be used like a working copy. svn库不能像工作副本一样使用。 Simply check out the repository to a working copy somewhere (with svn checkout - you already did that at least once). 只需将存储库svn checkout到某个地方的工作副本(使用svn checkout您已经至少执行过一次)。

Also, note that using svn mkdir with a URL is an unusual command. 另外,请注意,将svn mkdir与URL一起使用是不常见的命令。 Typically, you create the local changes (including new directories) in your working copy (on the client) and then commit them. 通常,您在工作副本中(在客户端上)创建本地更改(包括新目录),然后提交它们。

If you used the "svnadmin create " normally it is being created at your 如果您使用“ svnadmin create”,那么通常是在您的

system32 folder [ C:\\Windows\\System32 ]. system32文件夹[C:\\ Windows \\ System32]。

You can use svn mkdir but it's a bit awkward methods. 您可以使用svn mkdir,但这有点尴尬。 I use this method only when i really need create a structure online because i don't want to checkout everything. 我只在确实需要在线创建结构时才使用此方法,因为我不想签出所有内容。 For example: 例如:

svn mkdir http://myserver:81/svn/CatalogRepo/newclientcode/
svn mkdir http://myserver:81/svn/CatalogRepo/newclientcode/web/
svn mkdir http://myserver:81/svn/CatalogRepo/newclientcode/web/trunk/
svn mkdir http://myserver:81/svn/CatalogRepo/newclientcode/web/branches/
svn mkdir http://myserver:81/svn/CatalogRepo/newclientcode/web/tags/
svn co http://myserver:81/svn/CatalogRepo/newclientcode/web/trunk/

and then start working with with the new checkedout trunk. 然后开始使用新的已签出中继。 Note too, that you only do that if you already got something in http://myserver:81/svn/CatalogRepo/ for example... if the repo is clean, just check it out locally, create your folders, publish the changes ALL AT ONCE and then delete and checkout again the trunk this time. 还要注意,例如,仅当您已经在http:// myserver:81 / svn / CatalogRepo /中添加了某些内容时,您才这样做...如果存储库是干净的,只需在本地将其检出,创建文件夹,然后发布更改一次全部删除,然后删除并再次检出中继线。

The creation of directories directly on the server forces you to create a revision everytime you send a command while checking out a directory and doing everything locally allows you to do one big commit, it's much better that way! 直接在服务器上创建目录会迫使您每次在签出目录时发送命令并在本地进行所有操作时都创建一个修订,这比以前做得更好!

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

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