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

RE: svn list -v date formats are different in 1.4.5 V/s 1.5.4

From: Bert Huijben <rhuijben_at_sharpsvn.net>
Date: Wed, 6 May 2009 14:58:00 +0200

From: Sachidanand Shukla [mailto:shukla.68_at_gmail.com]
Sent: woensdag 6 mei 2009 13:59
To: Andy Levy
Cc: users_at_subversion.tigris.org
Subject: Re: svn list -v date formats are different in 1.4.5 V/s 1.5.4
>
> The issue is that we have a UNIX script that uses svn list to find the
diff between two tags (directory level diff)and diff between revisions
between two files, to reflect changes against which comment and by whom were
done in tag2 in comparison to tag 1, needed for some SOX & audit related
needs. the script finds diff of files and diff in revisions on each file
with date/time, author, comment and file name in csv format.
> This report contains date in two different formats. i tried to modify
older date to date format in with MS Excel options but without success.
> I need some clue on this to have similar format.
> Thnx.
> 2009/5/6 Andy Levy <andy.levy_at_gmail.com>
> On Wed, May 6, 2009 at 01:34, Sachidanand Shukla <shukla.68_at_gmail.com>
wrote:
> > Thanks Andy, Got your point...
> > Is there any way to make format same for all dates irrespective of age
of
> > commits. in UNIX the "ls" command does have a switch "-e" for the same
> > purpose, do we have something like that in SVN?
> Why do you think you need it? If you're dealing with history that old,
> wouldn't the log be better?
>
> > 2009/5/5 Andy Levy <andy.levy_at_gmail.com>
> >>
> >> On Tue, May 5, 2009 at 05:05, Sachidanand Shukla <shukla.68_at_gmail.com>
> >> wrote:
> >> > Hi
> >> > We installed svn 1.4.5 as first SVN version on our servers and then
it
> >> > got
> >> > upgraded to 1.5.4. I upgraded repositories as well.
> >> > Now i encounter a problem of change in date format between the
commits
> >> > during these different versions:
> >> > svn list -v -R file:///u000/subversion/repos/GSDB/build/gsdb_43_cit
> >> > |grep
> >> > Oct
> >> > 100 sa185057 11320 Oct 23 2008 web/jsp/sprod/xyz.jsp
> >> > svn list -v -R file:///u000/subversion/repos/GSDB/build/gsdb_43_cit
> >> > |grep
> >> > Nov
> >> > 104 sa185057 6611 Nov 04 08:17
> >> > web/java/com/ncr/gsdb/report/abc.java
> >> >
> >> > I upgraded the SVN on October 28 2008 (between Oct 23 and Nov 04).
> >> > Is there any way to make the formats similar?
> >>
> >> The date format didn't change. What you're seeing is the *NIX
> >> convention for displaying older dates in directory listings; for dates
> >> more than I think 6 months in the past, it just shows the month, day
> >> and year. For more recent dates, it shows the month, day & time.
> >>
> >> Run a regular "ls -l" on a directory on your system and you'll see the
> >> same behaviour.

The recommended output format for parsing subversions output is using the
--xml argument. This will give you a xml formatted output that will also
work with all future Subversion 1.X releases.

This will provides the date like <date>2009-05-06T10:45:03.232050Z</date>.

        Bert

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2080592

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-06 14:59:05 CEST

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

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