ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Reibert <...@reibert.com>
Subject RE: Re: svn-ant how to get latest revision?
Date Tue, 16 Sep 2008 05:24:17 GMT
Yup, although it was my impression the OP did not want to update ...

Also, a purist like me prefers to build from "svn export" rather than
"svn co", in which case "svnversion -c" is not an option (so I use other
tricks involving "svn info" on repo tags).

On Mon, 2008-09-15 at 17:41 -0700, DW Dennis Wheeler wrote:
> or you can simply use 
>   svnversion -c 
> on your working directory 
> (both before and after an 'svn update' for starting and ending revision
> numbers to generate changelogs for the build)
> 
> 
> > -----Original Message-----
> > From: Mark Reibert [mailto:mark@reibert.com] 
> > Sent: Wednesday, September 10, 2008 9:53 PM
> > To: futung.cheng@yahoo.com
> > Cc: users@subversion.tigris.org; user@ant.apache.org
> > Subject: Re: svn-ant how to get latest revision?
> > 
> > Use svn info on the repository itself (not your working 
> > copy). Something
> > like:
> > 
> > svn info $( svn info | grep 'Root:' | awk -F': ' '{print $2}' ) \
> >     | grep Revision | awk '{print $2}'
> > 
> > 
> > On Tue, 2008-09-09 at 23:54 -0700, Fu-Tung Cheng wrote:
> > > Hi,
> > > 
> > > I am trying to figure out which command I can use from 
> > svn-ant that will get me the highest revision from the repository.  
> > > 
> > > I've tried svn-info but both the rev and lastRev properties 
> > return the working copies revision number.
> > > 
> > > I've also tried the wcVersion task but again that just 
> > tells you the working copies last revision.
> > > 
> > > In order for me to get the information it appears I need to 
> > update my working copy to the latest and then call one of 
> > these targets.  Shouldn't there be a way using svn-ant to 
> > just get the latest version?
> > > 
> > > Does no one automate tasks using ant and svn?  The svn-ant 
> > tasks seem somewhat less mature than I would have expected.  
> > > 
> > > If I was using maven to do my building would I find better support?
> > > 
> > > 
> > > Thank you,
> > > 
> > > Fu-Tung
> > > 
> > > 
> > >       
> > > 
> > > 
> > > 
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > > For additional commands, e-mail: users-help@subversion.tigris.org
> > > 
> > > 
> > --
> > ----------------------
> > Mark S. Reibert, Ph.D.
> > mark@reibert.com
> > ----------------------
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 

-- 
----------------------
Mark S. Reibert, Ph.D.
svn@reibert.com
----------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message