VS2008的SVN插件
我在 Visual Studio 2008 中使用 VisualSVN 并且我必须在中运行某种提交监视器托盘区域以查看项目的本地副本是否已过期。
我有两个问题:
我讨厌把它放在两个地方,我想把它看作我的 VS 中的图标,
提交监视器软件会关注几个项目,当我处理项目 1(VS 知道的)时,我对其他项目不感兴趣。
我找不到 Visual Studio 的任何插件来执行此操作,并且想知道是否有人知道任何好东西。
I'm using VisualSVN with my Visual Studio 2008 and I have to run some sort of commit monitor in the tray area to see if the local copy of project is out of date.
I have two problems with that:
I hate to have it in two places, I want to see that as an icon in my VS,
The commit monitor software keeps an eye on several projects, when I work on project 1 (which VS knows about), I'm not interested in other projects.
I couldn't find any addons for Visual Studio to do that and was wondering if anyone knows about anything good.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一般来说,您有 2 个选择(除了像您已经做的那样运行 commitmonitor 之外):
SVN 的设计实际上是围绕“等到准备好并将其全部合并在一起”模型而设计的,因为无法保证即使您在开始修改工作副本之前立即更新工作副本,在您修改之前也不会有人提交更改。一个承诺的机会。 因此,让系统为您完成工作。
如果您担心冲突,最终的选择是使用 svn:needs-lock 属性,这意味着您必须在修改之前获得对您修改的任何文件的锁定,并且您将无法获得对其他文件的锁定。别人正在修改的文件。
您可能想询问 VisualSVN 人员,他们是否会添加一个选项来在 VS 加载项目时检查存储库(或者运行 AnkhSVN 并自己实现此功能)。
Generally, you have 2 options (besides running commitmonitor as you already do):
SVN's really designed around the 'wait until you're ready and merge it all together' model, as there's no guarantee that even if you update your working copy immediately before starting to modify it, someone won't commit changes before you've had a chance to commit. So, let the system do the work for you.
The ultimate alternative if you are worried about conflicts is to use the svn:needs-lock property which means you will have to get a lock on any file you modify before modifying it, and you won't be able to get a lock on a file someone else is modifying.
You might like to ask the VisualSVN people if they'd add an option to check the repository when a project is loaded by VS (or run AnkhSVN and implement this feature yourself).
AnkhSVN 已经开始朝这个方向工作,我们开始实现 Eclipse/Subclipse 中也使用的“同步视图”。 仍然缺少的东西是: 定期检查存储库,也许还有 VS 内的通知来告诉您某些内容已更改。
现在,您可以手动刷新此视图以查看本地和远程更改(以及可能存在潜在冲突的合并)。 欢迎使用补丁来扩展此功能:-)
Work has started in AnkhSVN in this direction, we started to implement the 'Synchronize View' that's also used in Eclipse/Subclipse. The things still missing are: Scheduled checking of the repository, and maybe a notification inside VS to tell you that something has changed.
Right now you can manually refresh this view to see local and remote changes (and merges which can be potential conflicts). Patches are welcome to extend this feature :-)
我假设 VisualSVN 是您的“服务器”(即使在同一台机器上运行)。
AnkhSVN 是一个很好的 Visual Studio 集成 SVN 客户端。
I'm assuming VisualSVN is your "server" (even if running on the same machine).
AnkhSVN is a good Visual Studio Integrated SVN Client.