SourceOffSite使用方法
SourceOffSite是一个访问sourcesafe的客户端软件,SourceOffSite采用TCP/IP协议访问服务端配置库,你不需要映射网络驱动器,解决了配置库端需要完全共享目录带来的安全隐患。
SourceOffSite的界面和操作习惯和SourceSafe类似,很容易使用,请看下图
使用方法:
1.下载软件sos_client_professional.exe。
2.安装sos_client_professional.exe
3.运行sourceoffsite,出现如下图
4.在server栏输入‘192.168.5.11’,port栏输入‘8080’,点击‘Connect’按钮,出现如下图
5.输入分配给你的用户名、密码,在下拉列表框中选择项目库,点击‘Login’按钮,第一次使用稍等一会即会出现项目的树视图如下图
6.登录成功,可以开始使用。
注:访问配置库的帐号请向管理员索取。
使用提示:
请看下图,在sourceoffsite中相比sourcesafe而言多了2个按钮,一个是refresh file list,用于刷新右侧窗口的文件列表的,另一个是refresh project tree,用于刷新左侧窗口的目录树列表的。当别人修改了目录结构或添加、减少文件后,2个窗口的列表是不会自动刷新的,即使你重新登录,导致大家经常发现文件不能看或想看的文件找不到,所以,请大家使用时经常刷新。
使用Show Differences比较2个文件:
The Show Differences operation in SourceOffSite can be performed at the file or project level. SourceOffSite may be configured with a diff utility (available separately) that will enable the user to generate a list of differences between the local and remote copies of a file or of two specific revisions of the same file. A project diff utility (available separately) may also be configured to allow the user to view the differences between the local and remote project structure. The diff utilities may be configured in the External Programs tab of the Options dialog.
File Level Differences
To see the differences between the local copy of a file and the latest version of the file in the SourceSafe database, select the specific file in the File List. Then, click the Show Differences button or choose the Show Differences command from either the Tools menu or by right-clicking.
To see the differences between the local copy of a file and any historical version of the file, select the file from the File List. Then click the Show History button or choose the Show History command from the Tools menu or by right-clicking. From within the History dialog, select the historical version of the file and then click the Diff button.
To see the differences of two historical versions of a file from the History dialog, select two versions of the file and click the Diff button.
Project Level Differences
To see the differences between the project structure that exists locally and the project structure that exists in the SourceSafe database, select a project from the Project List. Then, click the Show Differences button or select the Show Differences command from the Tools menu or by right-clicking. The Recursive option may be selected in the Project Diff dialog. If the Recursive option is selected, the differences between the subprojects can also be viewed. Click the OK button to view the project differences.
Please note: The project diff application is not launched unless there are differences in the local and remote project structure.
diff utility 可以使用ExamDiff_Pro 。
共享(share)分支(branch)合并(merge):
通过Share操作,一个文件可以被多个分支共享,在任何一个分支上对该文件的更改,都将反映到其他相关分支里。branch操作则消除这种共享,每次将一个被共享的文件拆成两个分支,在不同分支中分别跟踪该文件。通过查看文件属性的Links属性页可以了解该文件被哪些分支共享,通过查看Paths属性页可以了解文件的分支状况。
2 VSS只能对2个文件进行合并操作,不能合并2个分支。
2 合并的好处是不用将文件从A分支上check out到本地,然后check in到B分支,而是直接从A分支合并到B分支。
比如:开发人员如何将自己的私有分支上的文件合并到提交分支上的对应文件。
2 将本地源代码添加到私有分支上。
2 选定提交分支。
2 点击工具栏上的“Share File”按钮,选择被共享的私有分支上的文件或目录。
2 选中“branch after share”复选项。
2 点击“share”按钮后,即可将私有分支共享给提交分支。
此时,开发人员在私有分支上的修改不会反映到提交分支上,当需要将私有分支上的修改合并到提交分支时。
2 选定提交分支上的文件。
2 点击菜单栏上的“merge branch”项,出现merge对话框。
2 在project中选择私有分支,点击“merge”按钮,即可将私有分支合并到提交分支上。
在完成一个合并之后,VSS遵循如下规则:
2 如果仍有冲突,VSS维持文件的签出状态,为了使文件能顺利签入,你必须排除这些冲突。
2 如果你将一个文件合并到一个工程中,而该工程中的对应文件已被签出,该文件将继续保持签出状态。
2 在任何其他时候,VSS将会提示你,或者在合并后自动签入,或者保持文件的签出状态以使你在更新VSS数据库中内容之前再核查一边。