简体   繁体   English

TFS:电子邮件差异

[英]TFS: Email diffs

Eric suggests that you read your team's diffs every morning. 埃里克建议你每天早上阅读你的团队的差异。 Can I get TFS to automate this in some way? 我可以让TFS以某种方式自动化吗? Ideally I'd like an email with all of the differences in, but I'd settle for a link to each of the commits. 理想情况下,我想要一封包含所有差异的电子邮件,但我会找到每个提交的链接。

As someone who works for Eric and who has the behaviour of checking the diffs each morning let me explain what I do. 作为为Eric工作的人,每天早上都有检查差异的行为让我解释一下我做了什么。 I'd like to think that I was one of the people he was thinking about when he wrote the post, but I know for a fact that he didn't know I did the diff checking each morning :-) 我想我是他写这篇文章时想到的人之一,但我知道他不知道我每天早上都做差异检查:-)

In Eclipse I use the Team, Synchronize... functionality to compare my local workspace with the latest on the server. 在Eclipse中,我使用Team,Synchronize ...功能将我的本地工作区与服务器上的最新工作区进行比较。 As I do a get latest frequently, this tells me what has happened since I last did this (ie what changed while I wasn't looking). 因为我经常得到最新消息,这告诉我自从我上次这样做以来发生了什么(即在我不看的时候发生了什么变化)。

In Visual Studio, I can do a similar thing by right clicking on the root folder of the area that interests me and selecting Compare... and then doing a compare of the Workspace version with the latest version. 在Visual Studio中,我可以通过右键单击我感兴趣的区域的根文件夹并选择Compare ...然后将Workspace版本与最新版本进行比较来做类似的事情。

Alternatively, you can just do a "History..." on the folder that is of interest and a brief scan down the history view will show you what has been happening and you can go look at what is interesting. 或者,您可以在感兴趣的文件夹上执行“历史记录...”,并在历史记录视图中进行简要扫描,向您显示已发生的情况,您可以查看有趣的内容。 It also encourages you to leave good check-in comments, and to encourage your developers to do the same :-) 它还鼓励您留下良好的登记注释,并鼓励您的开发人员也这样做:-)

I used to have email alerts configured for each check-in (Team, Project Alerts...), but I just ended up ignoring them most of the time. 我曾经为每次签到(团队,项目提醒......)配置了电子邮件警报,但我最后在大多数情况下都忽略了它们。 I even have a robotic rabbit configured to talk to me when someone does a check-in or runs a build - but this is only useful during the day, not checking what has happened the previous day while I was asleep (I live in a different time-zone to the rest of my colleagues so they do a lot of work while I sleep and vice-versa, making the practise of diff-checking even more useful) 我甚至有一个机器人兔子配置为当有人办理登机手续或运行构建时与我交谈 - 但这只在白天有用,而不是检查我睡着时前一天发生的事情(我生活在一个不同的地方)我和其他同事的时区,所以他们在我睡觉时做了很多工作,反之亦然,这使得差异检查的做法更加有用)

In theory it would be possible to write a program that did generate you a diff each day between the latest version and your workspace version, however I've never bothered myself. 从理论上讲,有可能编写一个程序,它确实每天在最新版本和工作区版本之间产生差异,但是我从来没有打扰过自己。 This is partly because as I find the most value of the practise comes in exploring the changes that were made each day rather than just reading about them. 这部分是因为我发现实践的最大价值在于探索每天所做的改变,而不仅仅是阅读它们。 I also admit that I wasn't aware that anyone else in the world was doing this daily diff routine - I figured I was alone in my code voyerisum, but obviously not! 我也承认我并不知道世界上其他任何人都在做这种日常差异 - 我觉得我的代码是独自一人,但显然不是!

UPDATE Feb 12, 2009: The following blog post just came to my attention. 更新2009年2月12日:以下博客文章引起了我的注意。

http://blogs.msdn.com/abhinaba/archive/2008/07/07/auto-generating-code-review-email-for-tfs.aspx http://blogs.msdn.com/abhinaba/archive/2008/07/07/auto-generating-code-review-email-for-tfs.aspx

It talks about (and provides source for) a tool called CRMail that will generate an email from a shelveset that will contain links back to Team System Web Access to show the diffs for each change in the changeset. 它讨论(并提供源代码)名为CRMail的工具,该工具将从shelveset生成一封电子邮件,该电子邮件将包含返回Team System Web Access的链接,以显示变更集中每个更改的差异。 It would be possible to modify this source to get it to show you diffs between changesets if you wanted to. 如果您愿意,可以修改此源以使其显示变更集之间的差异。 Then you would just need to hook it up to run either as a nightly scheduled task or on every check-in by subscribing to the check-in event from TFS. 然后你只需要将它连接起来作为夜间计划任务或通过订阅来自TFS的登记事件在每次登记时运行。

Have you explored setting up a report on the project portal that would show diffs based on date? 您是否已探索在项目门户上设置报告,该报告将根据日期显示差异? I haven't done this (and I'm at home now so I can't investigate it), but I know that there is a lot of information you can get out of the portal. 我没有这样做(现在我在家,所以我无法调查),但我知道你可以从门户网站获得很多信息。 Whether you can get code diffs, I don't know. 你是否可以得到代码差异,我不知道。

The other alternative would be automating something with tfsadmin or the power tools . 另一种选择是使用tfsadmin或电动工具自动化某些东西。 Again, not at work so I can't look at it, though the power tools seem like they may make it possible to do what you want from the docs. 再次,不工作,所以我不能看它,虽然电动工具似乎可以使你可以从文档做你想要的。

A quick solution would be to configure project alerts to send you one email per changeset. 一个快速的解决方案是配置项目警报,以便为每个变更集发送一封电子邮件。

Filter these into a separate folder in your email client, and review them at your leisure. 将这些文件过滤到电子邮件客户端中的单独文件夹中,然后随意查看。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM