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

Re: Gathering general information

From: Andriy Yanov <Andriy.Yanov_at_ericpol.pl>
Date: 2006-02-28 15:39:12 CET
Andy Levy wrote:
On 2/28/06, Andriy Yanov <Andriy.Yanov@ericpol.pl> wrote:
  
Hello everyone,

here is the question:

I need to get all files commited/modified by some person within certain
period of time, e.g.:
get a list of all files modified between 25.02.2006 and 26.02.2006 by
main_designer

Result:

main_designer | resource.h        | 25.02.2006 13:24 modified
main_designer | icons.bmp        | 25.02.2006 13:27 added
    

svn log can take dates as the revision range parameter.  You can then
parse the output of that to find only the revision(s) committed by
that person, then run svn log again for the revision(s) you find.

svn log -r {2006-02-25}:{2006-02-26}
svn log -r REVNUM

Or, use svn log -v and get the verbose log, which get both the basic
commit logs as well as the files affected in one shot, and then parse
those.

svn log -r {2006-02-25}:{2006-02-26} -v

Be aware that you may not get the revision date range you're expecting
when doing it this way; I still haven't fully understood how svn does
the math on these dates.  I think it will get the revision that the
repository was at on the start of the specified day; that is, if the
previous revision was made on 2/22/06, that'll be the first one
reported in the log.  Someone more experienced than I can clarify
that.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

  

 Also, as far as I understand, filtering by username can only be done by
 parsing resulting file, no such functionality in svn?
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.org Received on Tue Feb 28 16:13:27 2006

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.