[Anthill] Customizing Tag Name
Jim Hague
jim.hague at acm.org
Wed Feb 16 04:14:44 CST 2005
On Tuesday 15 Feb 2005 23:40, Ben Rady wrote:
> I have my version number all sorted out. The problem is that anthill
> currently appends a 'v' onto the front of the version number to create the
> tag name. I don't want the 'v' (we have an in-house policy on CVS tag
> names).
The CVS repository adapter will prepend a 'v' if the first character of the
version string isn't a letter. I haven't used CVS for a while, but I think
this may be a CVS requirement, so it can tell tag names from revision
numbers. None of the other repository adapters do this, and I know for sure
that my Subversion tree is full of purely numeric tags.
source/main/java/com/urbancode/anthill/adapter/CVSRepositoryAdapter.java, line
525.
> Secondly, the version file has additional constraints when building
> off of a branch. Namely, the branch name must be included in the version
> string.
Sorry, I don't follow. Is this your policy, or something Anthill does?
> I realize that I could write my own version adapter to solve the version
> name problem with the branch, but do I have to write my own repository
> adapter to change the tag name policy?
Yes. I can find no mechanism for altering the tag string from the version
string, beyond the substitution processing done once the tag string is
obtains, where any of $,.;:@ are replaced by _.
--
Jim Hague - jim.hague at acm.org Never trust a computer you can't lift.
More information about the Anthill
mailing list