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

minor bug in 'svn list -v'

From: Martin MAURER <martin.maurer_at_email.de>
Date: 2003-09-14 14:14:48 CEST

Hi all,

I just found a minor bug in 'svn list -v':
When there are files that have been committed longer than 1 year ago,
you should display the year of this commit too. the current output only
shows day, month and time.

another thing i wanted to propose (only cosmetic, but maybe at the same
location in the source code):
currently if a file is >=100MB the layout breaks because of the
displayed size. as 100 MB files are quite frequently around, it might be
good to increase the size field size by 1 or 2.

greetings
Martin

my testcase:

(503)(0)/tmp> svnadmin create SVN

(504)(0)/tmp> svn co file:///tmp/SVN/ test
Checked out revision 0.

(505)(0)/tmp> cd test

(507)(1)/tmp/test> sudo date -s '2002-05-05'

Sun May 5 00:00:00 CEST 2002

(534)(0)/tmp/test> touch bla
(535)(0)/tmp/test> svn add bla
A bla

(536)(0)/tmp/test> svn ci -m 'added file bla'
Adding bla
Transmitting file data .
Committed revision 1.

// i changed the date before this command
(537)(0)/tmp/test> date
Sun Sep 14 13:48:09 CEST 2003

(538)(0)/tmp/test> touch anotherfile
(539)(0)/tmp/test> svn add anotherfile
A anotherfile

(540)(0)/tmp/test> svn ci -m 'added anotherfile'
Adding anotherfile
Transmitting file data .
Committed revision 2.

(543)(0)/tmp/test> svn up
At revision 2.

// svn log works correctly
(544)(0)/tmp/test> svn log
------------------------------------------------------------------------
rev 2: lonestar | 2003-09-14 13:48:31 +0200 (Sun, 14 Sep 2003) | 1 line

added anotherfile
------------------------------------------------------------------------
rev 1: lonestar | 2002-05-05 00:00:18 +0200 (Sun, 05 May 2002) | 1 line

added file bla
------------------------------------------------------------------------

// the date doesnt show the year here.
(545)(0)/tmp/test> svn list -v
_ 2 lonestar 0 Sep 14 13:48 anotherfile
_ 1 lonestar 0 May 05 00:00 bla

//**************************************************************************

list with a big file:
_ 2 lonestar 0 Sep 14 13:48 anotherfile
P 3 lonestar 122880000 Sep 14 14:09 bigfile
_ 1 lonestar 0 May 05 00:00 bla

Received on Sun Sep 14 14:41:46 2003

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.