Visual Source Safe:获取特定行已更改的版本

发布于 2024-08-23 04:08:51 字数 131 浏览 4 评论 0原文

我试图在创建特定错误时进行追踪,但是遍历历史记录非常耗时。是否有人熟悉命令行方法来获取一行或一系列行发生更改的修订列表?

svn 和 Vault 布道者: 我知道,对……但是你不能总是选择环境……

I'm trying to run down when a particular bug was created, but wading through the history is pretty time consuming. Is anyone familiar with a command line method to get a list of revisions where a line or range of lines changed?

svn and vault evangelists: I know, right....but you can't always pick the environment....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我的影子我的梦 2024-08-30 04:08:51

我认为 SourceSafe 没有一种简单的方法可以做到这一点..但自 2005 版本以来我就没有使用过 SourceSafe。您可以尝试的一种方法是使用分而治之的搜索。

首先,选择一个未来的日期,如果存在错误,则将长度加倍,直到找到没有错误的版本。

您只需要处理两个已知点,一个是您知道存在错误的点,另一个是您知道不存在错误的点,将这两点切成两半并检查中间的版本。如果存在错误,则将上半部分切成两半,如果没有,则将下半部分切成两半。
这比查看每个文件版本更有效。

我不记得 SourceSafe 是否有每个文件的版本号,如果没有,您可以使用滚动条作为中间点位置的指南。

I don't think SourceSafe has an easy way to do this.. but I haven't used SourceSafe since version 2005. One method you could try is using a divide and conquer search.

First, pick a date in way in the future, if the bug is there, double the length, until you find a version without the bug.

You just need two known points to work with, one when you know the bug is there, and one where you know the bug isn't there, cut those two in half and check the version in the middle. if the bug is there cut the top half in half, if its not cut the bottom half into half.
This will be way more effective then looking in every file version.

I don't remember if SourceSafe has a version number for each file, if not you could just use the scrollbar as your guide for where the halfway point is.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文