Re: SVN Log
Jim Hague <[email protected]> Tue, 27 Feb 2007 10:30:32 +0000
| Newsgroups | gmane.comp.java.anthill |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 27 February 2007 04:16, Eric Minick wrote: > It's running: > > svn log --non-interactive -v <%=authArgs%> <%=revString%> <%=url%> > > You can look these commands up (and tweak them) by looking in the > conf/profiles directory. So it's just the traditional svn revision > history command, and with a good bit of parsing. Parsing revision logs > tends to be the most complicated part of an Anthill integration with > source control. The parsing isn't particularly complicated. The gory details are in source/main/java/com/urbancode/anthill/adapter/SubversionRepositoryAdapter.java. Subversion output is deliberately easy to parse, and a couple of regular expressions is all that's needed. That code uses the pagelet source/main/profiles/Unix/unix_subversion/getRevisionsSince.pgl to fire off the Subversion command, passing in a timestamp that is the timestamp from which revisions shold be obtained. Really for Subversion this should be a change number, but the notion that a timestamp is the only way to pinpoint a particular state of the repository is nailed into Anthill at a low level, and it looked like far too much work to change this. You can also take a quick peek at ChangesetRevision.java to see how the change message is built. -- Jim Hague - [email protected] Never trust a computer you can't lift.