[Cdash] Problem with ViewVC and new file

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Oct 2 11:47:10 EDT 2008


I think this is going to be even easier on your side, the output can
be xml formatted:


so entry marked with 'A' are added, entry with 'M' are simply modified.



$ svn log --xml -r {2008-09-29}:{2008-09-30} -v 2>&1
<?xml version="1.0"?>
<log>
<logentry
   revision="4437">
<author>malat</author>
<date>2008-09-26T16:35:35.122027Z</date>
<paths>
<path
   action="M">/trunk/Applications/Cxx/gdcmimg.cxx</path>
<path
   action="M">/trunk/Applications/Cxx/gdcmconv.cxx</path>
</paths>
<msg>ENH: add option to specify the series-uid/study-uid</msg>
</logentry>
<logentry
   revision="4438">
<author>malat</author>
<date>2008-09-29T09:42:18.510283Z</date>
<paths>
<path
   action="M">/trunk/CMakeLists.txt</path>
<path
   action="M">/trunk/Applications/Cxx/CMakeLists.txt</path>
</paths>
<msg>ENH: add a way to remove prop on executable</msg>
</logentry>
<logentry
   revision="4439">
<author>malat</author>
<date>2008-09-29T11:53:19.482837Z</date>
<paths>
<path
   action="M">/trunk/Utilities/Insight/itkGDCMImageIO2.cxx</path>
<path
   action="M">/trunk/Source/DataStructureAndEncodingDefinition/gdcmTag.cxx</path>
<path
   action="M">/trunk/Utilities/Insight/itkGDCMImageIO2.h</path>
<path
   action="M">/trunk/Source/DataStructureAndEncodingDefinition/gdcmTag.h</path>
</paths>
<msg>ENH: work toward backward compat</msg>
</logentry>
<logentry
   revision="4440">
<author>malat</author>
<date>2008-09-29T13:11:45.503243Z</date>
<paths>
<path
   action="M">/trunk/Source/MediaStorageAndFileFormat/gdcmImageReader.cxx</path>
<path
   action="M">/trunk/Source/MediaStorageAndFileFormat/gdcmStringFilter.cxx</path>
</paths>
<msg>ENH: less verbose by default</msg>
</logentry>
<logentry
   revision="4441">
<author>malat</author>
<date>2008-09-29T13:55:05.445528Z</date>
<paths>
<path
   action="M">/trunk/Utilities/Insight/itkGDCMImageIO2.cxx</path>
</paths>
<msg>ENH: remove warning</msg>
</logentry>
<logentry
   revision="4442">
<author>malat</author>
<date>2008-09-29T14:27:40.936467Z</date>
<paths>
<path
   action="M">/trunk/Source/MediaStorageAndFileFormat/CMakeLists.txt</path>
<path
   action="M">/trunk/Source/MediaStorageAndFileFormat/gdcmStringFilter.h</path>
<path
   action="A">/trunk/Source/MediaStorageAndFileFormat/gdcmSerieHelper.cxx</path>
<path
   action="A">/trunk/Source/MediaStorageAndFileFormat/gdcmSerieHelper.h</path>
</paths>
<msg>ENH: backward compat for ITK</msg>
</logentry>
<logentry
   revision="4446">
<author>malat</author>
<date>2008-09-29T20:19:59.963168Z</date>
<paths>
<path
   action="M">/trunk/Applications/Cxx/gdcmraw.cxx</path>
</paths>
<msg>ENH: in case of bad pattern return error</msg>
</logentry>
<logentry
   revision="4447">
<author>malat</author>
<date>2008-09-29T20:21:22.315033Z</date>
<paths>
<path
   action="M">/trunk/CMakeLists.txt</path>
</paths>
<msg>ENH: need to strip more exe</msg>
</logentry>
<logentry
   revision="4448">
<author>malat</author>
<date>2008-09-29T20:41:44.244973Z</date>
<paths>
<path
   action="M">/trunk/CMakeLists.txt</path>
</paths>
<msg>ENH: improve message</msg>
</logentry>
</log>


On Thu, Oct 2, 2008 at 5:37 PM, Julien Jomier <julien.jomier at kitware.com> wrote:
> For SVN: svn log $svnroot -r {2008-09-15}:{2008-09-16} -v 2>&1 (changes
> between september 15 and september 16)
>
> For CVS: cvs -d $cvsroot rlog -S -N -d "$fromtime<$totime" $module 2>&1
>
> Julien
>
> Mathieu Malaterre wrote:
>>
>> ok now I understand. What I still need to know is:
>>
>> what is the command used actually every night ?
>>
>> thx
>>
>> On Thu, Oct 2, 2008 at 5:29 PM, Julien Jomier <julien.jomier at kitware.com>
>> wrote:
>>>
>>> Mat,
>>>
>>> This is the problem. We don't want to perform a complete svn log on each
>>> updated file, because it would be too slow. If there is a way to get the
>>> previous revision of a file with svn that would be OK and hopefully we
>>> won't
>>> have hundreds of file checked in every day.
>>>
>>> If there's a better way, let me know.
>>>
>>> Julien
>>>
>>> Mathieu Malaterre wrote:
>>>>
>>>> Julien,
>>>>
>>>>  I do not understand what is the issue here. A new file will return:
>>>>
>>>> $ svn log gdcmSerieHelper.cxx
>>>> ------------------------------------------------------------------------
>>>> r4442 | malat | 2008-09-29 16:27:40 +0200 (Mon, 29 Sep 2008) | 1 line
>>>>
>>>> ENH: backward compat for ITK
>>>> ------------------------------------------------------------------------
>>>>
>>>> Only one log entry, while a file with multiple revision will return:
>>>>
>>>> $ svn log CMakeLists.txt
>>>> ------------------------------------------------------------------------
>>>> r4442 | malat | 2008-09-29 16:27:40 +0200 (Mon, 29 Sep 2008) | 1 line
>>>>
>>>> ENH: backward compat for ITK
>>>> ------------------------------------------------------------------------
>>>> r4415 | malat | 2008-09-25 11:14:58 +0200 (Thu, 25 Sep 2008) | 1 line
>>>>
>>>> ENH: rename
>>>> ------------------------------------------------------------------------
>>>> r4398 | malat | 2008-09-23 18:53:19 +0200 (Tue, 23 Sep 2008) | 1 line
>>>>
>>>> ENH: introduce new filter
>>>> ------------------------------------------------------------------------
>>>> ....
>>>>
>>>>
>>>> Why is it wrong to assume the file has no previous revision in the first
>>>> case ?
>>>>
>>>> thanks
>>>>
>>>>
>>>> On Tue, Sep 30, 2008 at 8:32 PM, Julien Jomier
>>>> <julien.jomier at kitware.com> wrote:
>>>>>
>>>>> Hi Mat,
>>>>>
>>>>> The main issue is that svn log doesn't return the previous revision of
>>>>> the
>>>>> file, so there is no way to know if the file has a previous revision or
>>>>> not.
>>>>> If you have an idea on how to get the previous revision of a file from
>>>>> svn
>>>>> log then I take it.
>>>>>
>>>>> If you can log a bug that would be great.
>>>>>
>>>>> Thanks,
>>>>> Julien
>>>>>
>>>>> Mathieu Malaterre wrote:
>>>>>>
>>>>>> Hi there,
>>>>>>
>>>>>>  Are new files supported in ViewVC/CDash ?
>>>>>>
>>>>>>  CDash is generating this link in the Update section:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/Source/MediaStorageAndFileFormat/gdcmSerieHelper.h?r1=4441&r2=4442
>>>>>>
>>>>>>  which lead to a ViewVC Exception, the file was added and contains no
>>>>>> revision:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/Source/MediaStorageAndFileFormat/gdcmSerieHelper.cxx?view=log
>>>>>>
>>>>>> Thanks,
>>>>
>>>>
>>
>>
>>
>



-- 
Mathieu


More information about the Cdash mailing list