SVN存储提交时间如何?(How does SVN store commit time?)

编程入门 行业动态 更新时间:2024-10-27 06:34:48
SVN存储提交时间如何?(How does SVN store commit time?)

我正在研究一个涉及使用SVNKit从SVN服务器提取详细信息的项目。 我的项目已经完成,现在一直在努力。 在测试过程中,我注意到一些非常奇怪的东西。 提交时间我的提取数据似乎总是与SVN日志中的内容不同。

我无法在我的项目中找到任何可能导致这种差异的代码,但现在我正在关注SVN服务器如何在其中存储提交时间。 由于我们有来自世界各地的开发人员工作,因此导致不同的时区,我认为SVN可能会在将它们转换为运行SVN服务器的系统的GMT或时区后存储时间。 但是这似乎并没有发生。 相反,时间按照提交完成的时间以及本地时区本身进行存储。

到目前为止,我一直无法在互联网上找到任何实质性文件来支持我的理论。

任何人都可以简单地解释SVN如何存储每次更改的提交时间? Documentaion链接指向这将有很大的帮助。

I am working on a project that involves extracting details from a SVN server using SVNKit. My project is already complete and has been working we for a while now. During the testing, I noticed something rather very strange. the Commit Times my extract data seems is alway different from whats there in SVN Logs.

I couldnt find any code in my project that could be inducing this difference but now I am looking as to how SVN server stores the Commit time in itself. As we have developer working from different part of the world thus resulting in different timezones, I was thinking that SVN might be storing time after converting them to GMT or timezone of the system on which SVN server is running. But that does not seem to be happening. Instead the times are stored as per the time when the commit was done and in that local timezone itself.

I have been unable to find any substantial document on internet to support my theory so far.

Can anybody in brief explain as how SVN store the Commit Time for each change? Documentaion links referring to this will be of great help.

最满意答案

Subversion开发人员Ben Collins-Sussman这封电子邮件证实了这一点 ,Subversion使用UTC时区根据server时间设置了提交时间。 另外, git-svn manpage和Perl SVN::Web模块文档也同意这一点。

Looks like Subversion sets commit time based on server time using UTC timezone, this email from Subversion developer Ben Collins-Sussman confirms it. Also, git-svn manpage and, Perl SVN::Web module documentation agrees with this.

更多推荐

本文发布于:2023-08-04 22:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1423167.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时间   SVN   store   time   commit

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!