开发者

Subversion date range returning odd results

开发者 https://www.devze.com 2023-04-12 19:26 出处:网络
SVN seems to have a very straightforward way to return information from a date range.I was working on automating some of our deployment process, and I was trying to gather information from the SVN log

SVN seems to have a very straightforward way to return information from a date range. I was working on automating some of our deployment process, and I was trying to gather information from the SVN log. I tried this:

svn log --xml -r {2011-10-10}:{2011-10-11} https://somerepourl

this is what returned:

<?xml version="1.0"?>
<log>
  <logentry revision="2531">
    <author>dio</author>
    <date>2011-10-07T00:09:54.070899Z</date>
    <msg>Updated targets file to use branch dependencies.</msg>
  </logentry>
  <logentry revision="2532">
    <author>dio</author>
    <date>2011-10-10T20:16:25.505299Z</date>
    <msg>Refactored Account Name validation.</msg>
  </logentry>
  <!-- etc etc -->
</log>

开发者_Python百科Now, the second result I expect, the date is within the range I requested, but the first result makes no sense to me, it's from several days ago. I checked the svn docs, but it makes no mention of returning dates outside of your range.

Has anyone encountered this issue before? I'm using SVN version 1.6.9


The output of svn h log says:

'{' DATE '}' revision at start of the date

It does NOT say: "first revision after DATE".

So, at 2011-10-10 00:00:00 the revision r2531 was "active", therefore it is shown.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号