[Anthill-pro] Alternate means for retrieving the subversion revision number

Christopher Power chrispower36 at gmail.com
Fri Sep 21 15:41:21 CDT 2007


Steve,

I am currently using the ChangeLog's ChangeSet ID as described in the online
documentation.  However in some cases (such as forced builds, etc.) there
might not be a change log hence the question.

I read through the APIs and tried a couple things but it wasn't obvious to
me the proper way of going about it.  I tried getting the source config,
casting it to an SvnSourceConfig and then getting the SvnModule[] to call
getRevision().  Is that the appropriate means?

Thanks,
Chris


On 9/21/07, Steve Boone <sbb at urbancode.com> wrote:
>
> Christopher,
>
> You would have to write a script. If the script finds a revision number it
> uses it. If it doesn't, you could have it use the last stamp or modify the
> last stamp and apply it.
>
> The API is available through the web UI at /remoting and /scripting
>
> If you have any questions, let us know!
>
> Regards,
> Steve Boone
>
>  On 9/19/07, Christopher Power <chrispower36 at gmail.com> wrote:
>
> >  I understand and have implemented the script for stamping a build with
> > the svn revision number using the ChangeLogHelper.  If, however, I force a
> > build without any changes being made to the repository, there is no
> > ChangeLogArray and therefore no way to get at the svn revision number.
> >
> > Is there some alternate means of retrieving the svn revision in that
> > case?
> >
> > Thanks,
> > Chris
> >
> > _______________________________________________
> > Anthill-pro mailing list
> > Anthill-pro at lists.urbancode.com
> > http://lists.urbancode.com/mailman/listinfo/anthill-pro
> >
> >
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20070921/34542e39/attachment.htm


More information about the Anthill-pro mailing list