Re: SVN Log
"Res Pons" <[email protected]> Tue, 27 Feb 2007 09:33:41 -0800
| Newsgroups | gmane.comp.java.anthill |
|---|---|
| Message-ID | <[email protected]> |
Thank you for all the information. I ran the svn log command as you & Eric suggested and it worked beautifully. Would you happen to know how Anthill keeps track of the delta updates between the previous and the current build? Where does it store this information and how does it know? I would like to write a bash shell script which executes the code below and passes this 'since' value to <%=revString%> svn log --non-interactive -v <%=authArgs%> <%=revString%> <%=url%> ----Original Message Follows---- From: Jim Hague <[email protected]> Reply-To: Anthill user list <anthill-IWHQxnLZ/[email protected]> To: Anthill user list <anthill-IWHQxnLZ/[email protected]> Subject: Re: [Anthill] SVN Log Date: Tue, 27 Feb 2007 10:30:32 +0000 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. _______________________________________________ Anthill mailing list Anthill-IWHQxnLZ/[email protected] http://lists.urbancode.com/mailman/listinfo/anthill _________________________________________________________________ Don’t miss your chance to WIN 10 hours of private jet travel from Microsoft® Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/