使用 Visual Source Safe 进行分支的正确方法是什么?
我目前所做的是将项目链接到另一个位置并为其指定相同的名称,然后选中“共享后分支”框。 然后我会查看共享项目并完成它。 最后与原来的项目合并。
这工作正常,但感觉非常笨重:我的驱动器上有该项目的多个实例; 每次我在不同的分支机构工作时,我都必须更改网站的物理地址(我使用asp.net 1.1);
这感觉不是正确的做法。 您如何使用 VSS 对项目进行分支?
What I currently do is I link the project to another location and give it the same name, then check the box where it says "Branch after share."
And then I would Check out the shared project and work off it. And finally merge with the original project.
This works okay, but it feels very clunky: I have multiple instances of the project on my drive; I have to change physical address of the website (i use asp.net 1.1) every time I work on a different branch;
That doesn't feel like the right way to do it. How do you branch your projects with VSS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以在这里找到一个很好的参考: http://www .codepool.biz/version-control/sourcesafe/branch-in-sourcesafe-vss.html
基本上右键单击并将您的文件夹拖动到您想要分支的位置,当您放开时,您将获得共享/分支/递归选项。
不寒而栗。
You can find a good reference here: http://www.codepool.biz/version-control/sourcesafe/branch-in-sourcesafe-vss.html
Basically right-click-drag your folder to where you want a branch, and when you let go you are given share/branch/recursive options.
Shudder.
您描述的方式是唯一支持的“分支”方式。 正如您所指出的,它相当笨重。 在 VSS 中,最好避免一起分支,因为这会破坏您的源历史记录。
The way you described is the only supported way to do "branching". And as you pointed out it is rather clunky. In VSS it's best to avoid branching alltogether as it will destroy your source history.
我认为你在问题中描述的方式是你可以在 sourceSafe 中做到这一点的唯一方法。
我通常将复制的目录命名为“V1.0”(或任何适当的名称)并将它们全部保存在主项目名称的文件夹中。
I think the way you describe in the question is the only way you can do it in sourceSafe.
I usually name the copied directory "V1.0" (or whatever is appropriate) and keep them all in a folder that is the main project name.
这是在 SourceSafe 中对源代码进行分支的普遍接受的方法。 如果合并和保留历史记录不是问题,则唯一的其他方法是将文件复制到新文件夹,删除只读属性,删除 .vssscc 和 .scc 文件,然后添加新的文件项目到 SourceSafe。 那时,您就有了一个全新的项目,没有任何先前的历史记录。
That is the generally accepted way of branching your source code in SourceSafe. The only other way to do it, if merging and retaining the history are not an issue, is to copy the files to a new folder, remove the read-only attribute, remove the .vssscc and .scc files, and then add that new project to SourceSafe. At that point, you have an all new project, with no prior history.