带有版本时间戳检索的文本文档存储

发布于 2024-08-16 08:53:45 字数 377 浏览 4 评论 0原文

有谁知道任何 SCM(例如 svn、git 等)可以让我快速访问给定实际时间的数据,而无需刻意标记它或解析大日志来找出当前活动的版本时间?

IE 存储 file=X 的值 A(上午 9 点)、B(上午 10 点)、C(上午 11 点)、D(下午 2 点)。

我希望能够快速查询 11.30 处的键值并返回值 C。

它需要很快,因为我计划对多个小文件执行此操作,并且我希望它基于时间戳而不是标签基于,因为我希望能够跨多个不同的存储库进行检索(在所有存储库上强制执行相同的标签会很棘手,因为所有存储库在标签操作时都必须可用)。

我热衷于使用 SCM,因为我想要的另一个功能是分支,而且我不喜欢重新发明轮子。

有谁知道有内置这种时间戳样式的文档检索的 SCM 吗?

Does anyone know of any SCM(s) (e.g. svn, git, etc) that would allow me to quickly access data as it was at a given actual time without deliberately tagging it or parsing big logs to work out what version was active at the time?

i.e.
Store values for file=X of
A (at 9am),B (at 10am),C (at 11am),D (at 2pm).

I want to be able to quickly query for the value of key at 11.30 and get back the value C.

It needs to be quick as I am planning on doing this for multiple small files, and I want it to be timestamp based rather than tag based as I want to be able to do the retrieval across multiple different repos (would be tricky to enforce same tags over all the repos as all must be available at time of tag operation).

I am keen to use an SCM as another feature I want is branching and I don't like reinventing wheels.

Does anyone know of an SCM out there that have this timestamp style of document retrieval built in?

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

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

发布评论

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

评论(1

南笙 2024-08-23 08:53:45

svn 允许您按时间签出和导出修订。

http://svnbook.red-bean.com/ en/1.4/svn.tour.revs.specifiers.html

我刚刚尝试使用带有 svn export 的修订时间戳来处理单个文件,以及使用 svn checkout 来处理整个文件目录,并且看起来工作正常。

svn lets you checkout and export revisions by time.

http://svnbook.red-bean.com/en/1.4/svn.tour.revs.specifiers.html

I just tried using revision timestamps with svn export for individual files, and svn checkout for a whole directory, and it seems to work fine.

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