[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn revision r0 question

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 27 Sep 2008 19:25:25 +0200

Blair Zajac wrote:
> Ben Collins-Sussman wrote:
>> On Sat, Sep 27, 2008 at 7:49 AM, Branko Èibej <brane_at_xbc.nu> wrote:
>>> Barry Scott wrote:
>>>> I'm fixing a problem in pysvn Workbench that is a result of
>>>> svn_client_logX returning
>>>> revision 0.
>>>>
>>>> Revision 0 is not like the other revisions because it only the
>>>> svn:date
>>>> revprop.
>>>>
>>>> The svn log command filters out any entry that has a revision of 0
>>>> and any
>>>> that
>>>> do not have a svn:message. (Filtering out svn:message == NULL seems
>>>> very
>>>> odd
>>>> isn't svn:message mandatory in a repos?).
>>> What is svn:message?
>>>
>>> And WFIW, no revprops should be mandatory, ever.
>>>
>>
>> No revprops are ever required to exist. No 3rd-party program should
>> ever assume that 'svn:date', 'svn:author', or 'svn:log' exist; it's
>> not an error for any of them to not exist. svn:author only exists if
>> the commit was authenticated; svn:log only exists if someone typed a
>> message; and even though svn:date is added by the repository at
>> commit-time, a committer might have used 'svn propchange' to simply
>> remove it. These are all legitimate situations.
>
> Why would we ever allow svn:date to be removed?

Maybe removing isn't such a good idea.
But: there are repositories out there which have revisions with no date.
We had problems because of those in TSVN before. From what I found, most
of those repositories have been converted from other SCM repositories,
and as it seems the converter left out the date for some revisions.

So, it is very well possible that a revision does not have a date
assigned to it.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net

Received on 2008-09-27 19:25:44 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.