在 SVN 中创建分支的符号链接?
我想创建一个到 SVN 中目录的符号链接,例如。 如果我有
branches/week-1/
branches/week-2/
...
branches/week-n/
并且想要一个目录,
branches/current -> branches/week-n
我可以继续指向最新的n(通过手动更新它)。 那可能吗? 如果可能的话,我想避免检查我们的整个存储库,因为它很大。
I'd like to create a symlink to a directory in SVN, eg. if I have
branches/week-1/
branches/week-2/
...
branches/week-n/
and I'd like a directory,
branches/current -> branches/week-n
that I can keep pointing to the latest n (by manually updating it). Is that possible?
If possible, I'd want to avoid checking out our entire repository, since it's huuuge.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 svn externals 属性来创建“快捷方式”。 虽然听起来你没有使用 svn 切换,但你应该使用。
执行 svn switch 将能够在仅包含更改的文件的分支之间进行更改。
通常您只有一个文件夹:
该文件夹中签出了一些分支。
然后你执行 svn switch 到你想要去的另一个分支。
听起来您使用 svn 的方式可能有些倒退。 如果您愿意,您可以每周创建一个
标签
,并在主干之外进行所有开发。You can use svn externals property to create 'shortcuts'. Although it sounds like you aren't using svn switching which you should be.
Doing an svn switch will be able to change between branches that you have with only the changed files.
Typically you have just one folder:
And that folder has some branch checked out into it.
Then you do an svn switch into the other branch you'd like to go to.
It also sounds like you might have something backwards with how you are working with svn. You can create weekly
tags
if you'd like like and do all of your development out of the trunk.