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

RE: CMS and subversion

From: Robert Hunter <robert.hunter_at_gen-i.co.nz>
Date: 2005-02-27 21:30:22 CET

>>> Also is it possible to take a repository and see all changes made to
>>> it
>>> in the last year? this might be useful for managers to see and general
>>> reporting.
>>
>> Sure. "svn log URL:///repository" will show you a log of all changes,
>> you can just chop it at the 1 year mark. Subversion doesn't have
>> any way of expressing "1 year prior" in the command line syntax,
>> you'll have to work that out on your own.
>
> Well, there *is* the -r {date} syntax, which maps to the first
> revision after {date}.
>
> So if one calculates 'today - 1 year' and puts in in the place of {date},
> then, yes we do have that functionality.

Just as a convenience, it might be worth mentioning that the calculation of
"today - 1 year" can be done in-line, at least with bash and GNU date.

$ date -d "1 year ago"
Sat Feb 28 09:21:47 NZDT 2004

$ date -d "1 year ago" +'%f'
2004-02-28

$ svn log -r {$(date -d "1 year ago" +%F)}:HEAD
[...]

Hope this helps :-)

-- 
Robert Hunter
*****************************************************************************
This communication, including any attachments, is confidential.
If you are not the intended recipient, you should not read it
- please contact me immediately, destroy it, and do not copy
or use any part of this communication or disclose anything about it,
Thank you.
Please note that this communication does not designate an information system
for the purposes of the Electronic Transactions Act 2002
******************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Feb 27 21:33:50 2005

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.