我正在研究一个涉及使用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.
更多推荐
发布评论