热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

使用VisualSourceSafe进行分支的正确方法是什么?-What'stherightwaytobranchwithVisualSourceSafe?

WhatIcurrentlydoisIlinktheprojecttoanotherlocationandgiveitthesamename,thencheck

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;

这没关系,但感觉非常笨重:我的驱动器上有多个项目实例;我每次在不同的分支机构工作时都必须更改网站的实际地址(我使用asp.net 1.1);

That doesn't feel like the right way to do it. How do you branch your projects with VSS?

这感觉不是正确的方法。您如何使用VSS分支您的项目?

4 个解决方案

#1


8  

I think the way you describe in the question is the only way you can do it in sourceSafe.

我认为你在问题中描述的方式是你在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.

我通常将复制的目录命名为“V1.0”(或任何合适的名称)并将它们全部保存在作为主项目名称的文件夹中。

#2


7  

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.

这是在SourceSafe中分支源代码的普遍接受的方式。如果合并并保留历史记录不是问题,唯一的另一种方法是将文件复制到新文件夹,删除只读属性,删除.vssscc和.scc文件,然后添加新文件项目到SourceSafe。那时,你有一个全新的项目,没有历史。

#3


6  

You can find a good reference here: http://www.codepool.biz/version-control/sourcesafe/branch-in-sourcesafe-vss.html

你可以在这里找到一个很好的参考: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.

#4


1  

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.

您描述的方式是唯一支持“分支”的方式。正如你所指出的那样相当笨重。在VSS中,最好避免全部分支,因为它会破坏您的源历史记录。


推荐阅读
  • 根据时间更改网站背景的脚本。热!
    我在网上找到了它,并以自己的方式对其进行了自定义;作者的功劳就在那里。实际上,这是一个用于更改背景颜色的脚本,并且在我看来& ... [详细]
  • Linux提权之suid篇
    Linux提权之suid篇不知攻,焉知防一个在安服路上摸索的大三生,记录平时学习笔记suid前言:1.只有可以执行的二进制程序文件才 ... [详细]
  • 一、如果使用默认的1521端口,让实例自动注册到该监听上,那么local_listener无需设置,listener.ora文件按照正常方 ... [详细]
  • nginx+tomcat session 共享
    *tomcat1192.168.10.153*tomcat2192.168.10.154Tomcat工作模式必须为Nio模式。##添加如下内容,注意更换address ... [详细]
  • 2019.4.14第1001题:SumProblemProblemDescriptionHey,welcometoHDOJ(HangzhouDianziUniversityOnli ... [详细]
  • 编程语言是从哪蹦出来的——大型伦理寻根现场
    Hello,我是Alex007,一个热爱计算机编程和硬件设计的小白,为啥是007呢?因为叫Alex的人太多了,再加上每天007的生活,Alex007就诞生了。聊一聊编程到底是啥,怎 ... [详细]
  • 在这一期的SendMessage函数应用中,我将向大家介绍如何利用消息函数来扩展树型列表(TreeView)控件的功能相信对于树型列表控件大家十分的熟悉, ... [详细]
  • 使用RSACryptoServiceProvider进行公钥加密我已经在CodeProject上发表了一篇文章,解释了如何使用RSA提供程序进行加密和解密:RSA私钥加密虽然200 ... [详细]
  • rbac 4表 常规设计
    rbac4表常规设计设计模型:1、管理员表(users)Schema::create('users',function(Blueprint$table){$tabl ... [详细]
  • packagetest;importjava.io.FileInputStream;importjava.io.FileOutputStream;importjava.io.IOE ... [详细]
  • MQ的使用
    安装环境:linuxredhatactivemq版本:5.8.01.从http:activemq.apache.orgdownload.html地址下载 ... [详细]
  • 第38天:Python decimal 模块
    by程序员野客在我们开发工作中浮点类型的使用还是比较普遍的,对于一些涉及资金金额的计算更是不能有丝毫误差,Python的decimal模块为浮点型精确计算提供了支持。1简介deci ... [详细]
  • 1.方法一:采用OleDB读取EXCEL文件:把EXCEL文件当做一个数据源来进行数据的读取操作,实例如下:publicDa ... [详细]
  • 1011-MarriageCeremoniesPDF(English)StatisticsForumTimeLimit:2second(s)MemoryLimit:32MBYouw ... [详细]
  • Fixes#3560Itriedtodowhatproposedintheissue(inthisbranchhttps://gith ... [详细]
author-avatar
程序员那些事
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有