I'd say it definitely is a useful feature to be able to find things in previous revisions - there is a million reasons why one could need that.
The same goes for files that existed in previous revisions but don't any more in the current revision.
And sometimes it may be important to track down since when (which revision) a variable or configuration setting exists.
That said, I personally have never been in a situation when I have really urgently needed this. Still, I'd say any self-respecting VCS should have a search function, or an external tool available that does the job. As far as I know, this is the case for at least Subversion, Git and Mercurial.
usually you hardly search the repository. you usually search on the latest version on your hard disk.
If you need to do a lot of historical digging, or if you have a lot of projects that you don't check out - than search abilities are important on the VC repository, but this is not the regular case that I've seen.
It really depends on your repository size, and how much you need historical info. (I always check out everything, so I'll have another backup... so I never uses the server for searches)
发布评论
评论(3)
我想说这绝对是一个有用的功能,能够在以前的版本中找到东西——有一百万个理由说明为什么人们需要它。
对于先前版本中存在但当前版本中不再存在的文件也是如此。
有时,追踪变量或配置设置何时(哪个版本)存在可能很重要。
也就是说,我个人从来没有遇到过真正迫切需要这个的情况。尽管如此,我还是想说,任何有自尊的 VCS 都应该有搜索功能,或者可以使用外部工具来完成这项工作。据我所知,至少 Subversion、Git 和 Mercurial 都是这样。
I'd say it definitely is a useful feature to be able to find things in previous revisions - there is a million reasons why one could need that.
The same goes for files that existed in previous revisions but don't any more in the current revision.
And sometimes it may be important to track down since when (which revision) a variable or configuration setting exists.
That said, I personally have never been in a situation when I have really urgently needed this. Still, I'd say any self-respecting VCS should have a search function, or an external tool available that does the job. As far as I know, this is the case for at least Subversion, Git and Mercurial.
通常你几乎不搜索存储库。您通常会在硬盘上搜索最新版本。
如果你需要进行大量的历史挖掘,或者如果你有很多没有检查过的项目,那么搜索能力在 VC 存储库上就很重要,但这不是我见过的常见情况。
这实际上取决于您的存储库大小以及您需要多少历史信息。
(我总是检查所有内容,所以我会有另一个备份......所以我从不使用服务器进行搜索)
usually you hardly search the repository. you usually search on the latest version on your hard disk.
If you need to do a lot of historical digging, or if you have a lot of projects that you don't check out - than search abilities are important on the VC repository, but this is not the regular case that I've seen.
It really depends on your repository size, and how much you need historical info.
(I always check out everything, so I'll have another backup... so I never uses the server for searches)
我工作的公司认为这一点很重要,因为我们创建的存储库服务器和项目数量巨大。
The company I work for thinks it is important due to the sheer number of repository servers and projects that we have created.