是否可以从 TortoiseSVN 中的标签创建分支,而无需先从 SVN 服务器检查标签?
我们的 trunk 目录包含大约 100mb 的代码,我们从 trunk 目录创建标签。通常,这不是问题,因为标签在您需要将其用于某些用途之前不会占用任何空间。由于分支是从 SVN 中的标签创建的,因此如何在不首先检查标签的情况下从标签创建分支?看来我需要从 Windows 资源管理器执行 Tortoise 更新才能将标签下载到我的本地计算机,然后才能使用 Tortoise >分支/标签...从中创建分支。这似乎不合逻辑,因为我们不对标签文件夹进行更改,并且它要求我签出 100mb 的代码,只是为了创建一个分支,然后在分支文件夹中签出另外 100mb 的代码,其中的更改实际上是制成。
理想情况下,我可以通过 RepoBrowser 直接在存储库中创建分支 - 但我在那里看不到它的选项。
我错过了什么吗?
Our trunk directory contains about 100mb of code and we create tags from the trunk directory. Normally, this is not an issue because a tag takes up no space until you need to use it for something. Since branches are created from tags in SVN, how can I create a branch from a tag wtihout first checking out the tag? It appears I need to do a Tortoise Update from Windows Explorer to get the tag down to my local machine before I can use Tortoise > Branch/Tag... to create a branch from it. This seems illogical since we don't make changes to tag folders, and it requires that I check out 100mb of code, only to create a branch, and then check out another 100mb of code in the branch folder, where the changes will actually be made.
Ideally, I'd be able to create a branch directly in the repository via RepoBrowser - but I can't see an option for it there.
Am I missing something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
创建分支只需将所需目录复制到另一个位置即可。这可以直接在存储库浏览器中完成。
就 Subversion 而言,分支与标签没有什么特别的区别。这只是一种约定,将它们存储在单独的父文件夹下,相应地命名为“分支”和“标签”。
Creating a branch is just a matter of copying the desired directory to another location. This can be done directly in the Repo Browser.
There is nothing special that differentiates a branch from a tag as far as Subversion is concerned. It is just a convention to store them under separate parent folders, named 'branches' and 'tags' accordingly.
标签和分支之间的唯一区别是您对它们的态度——它们在幕后是等效的——在存储库中创建的卷影副本。
您甚至不需要工作副本来创建分支/标签。例如,您可以使用以下命令行:(
假设您除了 TortoiseSVN 之外还有 SVN.EXE,否则,请使用 Ben 的答案)
The only difference between tags and branches is your attitude towards them -- they are equivalent behind the scenes -- shadow copies made in the repository.
You don't even need a working copy to create a branch/tag. For example, you can use this command-line:
(assumes you have SVN.EXE in addition to TortoiseSVN, otherwise, use Ben's answer)