[译]有效的SourceSafe-SourceSafe的外壳扩展
By robot-v1.0
本文链接 https://www.kyfws.com/applications/effective-sourcesafe-shell-extension-for-sourcesaf-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 5 分钟阅读 - 2476 个词 阅读量 0[译]有效的SourceSafe-SourceSafe的外壳扩展
原文地址:https://www.codeproject.com/Articles/1714/Effective-SourceSafe-shell-extension-for-SourceSaf
原文作者:David Y. Zhao
译文由本站 robot-v1.0 翻译
前言
A shell extension enabling basic SourceSafe functionalities in Windows shell.
一个外壳扩展,可在Windows Shell中启用基本SourceSafe功能.
介绍(Introduction)
有效SourceSafe是一个外壳扩展,支持Windows Shell中的基本SourceSafe功能.使用此扩展程序,您可以直接在Windows资源管理器中签入/签出源文件.它仅在带有SourceSafe 6.0的Windows 2000/XP下进行了测试,但也可以在较早的版本上运行.但是,覆盖图标将需要ME或更高版本.(Effective SourceSafe is a shell extension enabling basic SourceSafe functionalities in Windows shell. With this extension you can check in/out your source files directly in Windows Explorer. It has only been tested under Windows 2000/XP with SourceSafe 6.0, but it should work on older versions too. However, overlay icons will require ME or later.)
安装(Installation)
要安装,请在以下命令中键入以下命令(For installation, type the following command in)开始(Start)->(->)跑(Run):(:)
regsvr32 x:\path_to_this_file\EssShell.dll
要卸载,请在以下命令中键入以下命令(For uninstallation, type the following command in)开始(Start)->(->)跑(Run):(:)
regsvr32 /u x:\path_to_this_file\EssShell.dll
然后你(Then you)**必须(must)**通过注销和登录或重新启动计算机来重新启动Windows资源管理器,否则(restart Windows Explorer by either logoff and login or restarting computer, otherwise the)*埃斯(Ess)*图标将不会由资源管理器加载.(icons won’t be loaded by Explorer.)
连接到SourceSafe数据库(Connects to SourceSafe database)
您需要指定一个配置文件((You need to specify a profile ()*VssShell.ini(VssShell.ini)*文件)以指定SourceSafe数据库,以及要为外壳程序扩展包含的文件.典型的配置文件如下所示:(file) to specify SourceSafe database, and which files to be included for the shell extension. A typical profile looks like:)
[Common]
profiles = 1
OverlayIcons = true
[Profile_1]
VSSData = E:\VSSData\srcsafe.ini
User = David Yuheng Zhao
Pwd =
VSSRoot = $/
LocalRoot = E:\Projects\
Include_1 = *.*
Exclude_1 = *\Debug\*.*
Exclude_2 = *\*Release*\*.*
Exclude_3 = *\Output\*.*
Exclude_4 = *.bsc
Exclude_5 = *.ilk
Exclude_6 = *.obj
Exclude_7 = *.res
Exclude_8 = *.pch
Exclude_9 = *.pdb
Exclude_10 = *.aps
Exclude_11 = *.vssscc
Exclude_12 = *.*~*
Exclude_13 = *.scc
Exclude_14 = dlldata.c
Exclude_15 = *.ncb
Exclude_16 = *.positions
Exclude_17 = *_i.c
Exclude_18 = *_p.c
Exclude_19 = *_h.h
Exclude_20 = *.tmp
Exclude_21 = thumbs.db
您必须指定SourceSafe数据库的正确路径((You must specify the correct path to the SourceSafe database () VSSData
), 用户名 ((), user name ()用户(User))和密码(() and password () Pwd
).然后,您还需要指定一个项目((). Then you also need to specify a project () VSSRoot
)(例如VSS)() from VSS (e.g.) $/
要么(or) $/my_project/
)和相应的本地路径(() and the corresponding local path () LocalRoot
).().)
要监视的文件由"包括"和"排除"规则定义,默认规则适用于Visual C ++项目,其中不包括编译器生成的文件.(Files to be monitored are defined by “include” and “exclude” rules, the default rules are for Visual C++ projects where compiler generated files are excluded.)
保存该文件时,INI文件将自动重新加载.(The INI file will be reloaded automatically when you save the file.)
用法(Usage)
如果您在中给出了正确的参数(If you have given correct parameters in)essshell.ini(essshell.ini),右键单击项目文件夹中的任何源文件,您应该获得一些其他菜单项.请注意,只有相关操作可用:(, you should get some additional menu items when you right click any source file in the project folder. Please note that only relevant actions are available:)
- 添加到源代码管理(Add to source control)
- 取得最新版本(Get latest version)
- 退房(Check out)
- 报到(Check in)
- 撤消签出(Undo check out)
- 从源代码管理中排除*(尚未实现)(*Exclude from source control * (Not implemented yet)*)
- 在源代码管理中删除*(*Delete at source control**)
- 关于 ..(About ..) 标有()的项目仅在您按住(Items marked with () are only displayed when you hold)**转移(shift)**在项目上单击鼠标右键时,请选择键.当你抱着(key when you right click at the item. When you hold)**转移(shift)**键(R)可能会出现在几个菜单项上,然后将递归执行这些命令.(key, (R) may appear on several menu items, then these commands will be performed recursively.)
已知的问题(Known issues)
- 性能(Performance)-启用覆盖图标时,Windows资源管理器的运行速度可能会变慢,该图标显示文件是否已签出.您可以通过设置禁用(- Windows Explorer may become slower when you enable the overlay icons, which shows whether a file is checked out. You can disable that by setting)
OverlayIcons
至(to)false
.(.) - 仅使用默认设置(Use default settings only)-Shell扩展名仅使用默认的SourceSafe设置,当您获取已签出的文件时,将忽略您.有空的时候我会做的.(- The shell extension uses default SourceSafe settings only, and you will be ignored when you get a file which is already checked out. I will work on this when I have time.)
- 在"文件打开/保存"对话框中崩溃(Crash in File Open/Save Dialog)-如果在文件打开/保存对话框中浏览到项目文件夹,然后立即关闭对话框,则应用程序可能会崩溃.原因是ESS在清除之前会将SourceSafe对象缓存约250毫秒.这加快了覆盖图标的重绘.如果您在清洁前关闭窗户,物体将在(- If you browse to a project folder in a file open/save dialog and then close the dialog immediately, the application may crash. The reason is that ESS caches SourceSafe object for about 250 ms before it cleans up. This speeds up the redraw of overlay icons. If you close the window before cleaning, the object will be destroyed at)
DLL_PROCESS_DETACH
并出现一个例外.如果您熟悉这种问题,请告诉我.您可以禁用覆盖图标来避免此问题,或者等待一会儿再关闭任何打开/保存对话框.(and an exception arises. If you are familiar with this kind of problem, please advise me. You can disable overlay icon to avoid this problem, or just wait for a while before closing any open/save dialog.) - 虫子(Bugs)-由于版本仅为0.1,因此可能会出现一些错误.请给我留言(- As the version is only 0.1, some bugs will be expected. Please send me a message) 这里(here) 我会尽力解决的.(and I will try to figure it out.)
最新版本(Latest version)
免费软件(Freeware)
有效的SourceSafe是免费软件,因此可以免费使用.如果您喜欢它并觉得有用,请告诉您的朋友.最新信息将可用(Effective SourceSafe is a freeware, so use it freely. If you like it and find it useful, please tell your friends about it. The latest information will be available) 这里(here) .(.)
版本0.1(Version 0.1)
版权所有©Ministars Software和David Y.Zhao 2001-2002.(Copyright © Ministars Software & David Y. Zhao 2001-2002.)
版权所有.(All rights reserved.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C++ WinXP Windows Win2K Visual-Studio Dev 新闻 翻译