带有版本时间戳检索的文本文档存储
有谁知道任何 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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, andsvn checkout
for a whole directory, and it seems to work fine.