Kenneth Burgener | 16 Feb 01:40

anthill - subversion tags and versions (period not an underscore)

I am running into a minor, but annoying problem when trying to use the 
"Subversion Tagging" with the "Versioned Build" feature.  My version 
files are in the format "1.1.1" and the build.version file reflects this 
correctly.  When I click the "Versioned Build" link it says my current 
version is "1.1.2", which I expect.  When I enter the version "1.1.1" 
the build fails and I get this error:

svn: URL 'http://svn.mydomain.com/svn/tags/build/1.1.2' doesn't exist
17:23:05:266 [Thread - AnthillBuildDaemon] ERROR 
com.urbancode.anthill.BuildManager  - ProfileAdapter checkout failed: 1
com.urbancode.anthill.adapter.RepositoryException: ProfileAdapter 
checkout failed: 1
        at 
com.urbancode.anthill.adapter.ProfileRepositoryAdapter.executeCommand(ProfileRepositoryAdapter.java:442)
        at 
com.urbancode.anthill.adapter.ProfileRepositoryAdapter.getWorkingProjectCopy(ProfileRepositoryAdapter.java:289)
        at 
com.urbancode.anthill.adapter.SubversionRepositoryAdapter.getWorkingProjectCopy(SubversionRepositoryAdapter.java:135)
        at com.urbancode.anthill.BuildManager.build(BuildManager.java:104)
        at 
com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:231)
        at 
com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
        at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)

I noticed when I use the "Subversion Tagging" it creates a tag, in 
subversion, with the "." periods replaced with "_" underscores (ie. 
1_1_1).  Which is not what I expected.  If I tell the "Versioned Build" 
to build "1_1_1" the build is successful.  I may have a way around the 
problem, but this is obviously very confusing when using the Anthill 
(Continue reading)

Jim Hague | 16 Feb 12:48
X-Face
Picon
Favicon
Gravatar

Re: anthill - subversion tags and versions (period not an underscore)

On Saturday 16 February 2008 00:40:34 Kenneth Burgener wrote:
> I am running into a minor, but annoying problem when trying to use the
> "Subversion Tagging" with the "Versioned Build" feature.
> [...]
> I noticed when I use the "Subversion Tagging" it creates a tag, in
> subversion, with the "." periods replaced with "_" underscores (ie.
> 1_1_1).  Which is not what I expected.  If I tell the "Versioned Build"
> to build "1_1_1" the build is successful.  I may have a way around the
> problem, but this is obviously very confusing when using the Anthill
> interface.  Is this a known problem?  Can the tagging feature be easily
> fixed to produce a tag with exactly what my version file has?

As I think you have guessed, this is a straightforward cockup. The version is 
edited when making the tag, but the same edit is not done when checking out a 
versioned copy.

The characters '$,.:;@' are all converted to '_', I think because of some 
vague notion that you might check out the tags tree at some point and they 
might cause problems with some filesystems. Including '.' is probably 
unnecessarily conservative.

I am inclined to both fix this - run the version label through the same edit 
on checkout - and to remove '.' (and maybe ',' and ';') from the troublesome 
characters. Any thoughts?
--

-- 
Jim Hague - jim.hague@...          Never trust a computer you can't lift.
Kenneth Burgener | 16 Feb 15:45

Re: anthill - subversion tags and versions (period not an underscore)

Jim Hague wrote:
> On Saturday 16 February 2008 00:40:34 Kenneth Burgener wrote:
> As I think you have guessed, this is a straightforward cockup. The version is 
> edited when making the tag, but the same edit is not done when checking out a 
> versioned copy.
> 
> The characters '$,.:;@' are all converted to '_', I think because of some 
> vague notion that you might check out the tags tree at some point and they 
> might cause problems with some filesystems. Including '.' is probably 
> unnecessarily conservative.
> 
> I am inclined to both fix this - run the version label through the same edit 
> on checkout - and to remove '.' (and maybe ',' and ';') from the troublesome 
> characters. Any thoughts?

I don't necessarily have a problem with there being a edit to protect 
the file system.  I know that Windows does have issues with file names 
starting or ending with a period (ie ".hello_world" or "hello_world.", 
although the former can be created if not using the GUI).  I do fully 
agree, if you are going to do an edit on the tagging, there should be 
the edit on the checkout as well.  The characters '.', ',' and ';' all 
appear to be acceptable as folder names (with the exception of '.' 
starting and ending a file name), so they should probably all be acceptable.

Thanks,
Kenneth
Jim Hague | 19 Feb 22:25
X-Face
Picon
Favicon
Gravatar

Re: anthill - subversion tags and versions (period not =?iso-8859-1?q?an=09underscore?=)

On Saturday 16 Feb 2008, Kenneth Burgener wrote:
> > I am inclined to both fix this - run the version label through the same
> > edit on checkout - and to remove '.' (and maybe ',' and ';') from the
> > troublesome characters. Any thoughts?
>
> [...] I do fully
> agree, if you are going to do an edit on the tagging, there should be
> the edit on the checkout as well.  The characters '.', ',' and ';' all
> appear to be acceptable as folder names (with the exception of '.'
> starting and ending a file name), so they should probably all be
> acceptable.

I'm away from my Anthill setup at the moment, so I haven't tested it, but the 
attached patch builds and looks about right. Unfortunately it's a patch to 
Anthill + the other patches I have, so it will probably need a bit of 
wiggling to go onto your sources (and you won't have the Mercurial repository 
adapter).

It follows the above suggestion and leaves commas and semi-colons alone, and 
only troubles periods when they start or end a tag. Of course, this also 
means that your old tags still have to be entered in post-processed form, but 
at least the new tags should work.

Alternatively, if you grok Mercurial (http://www.selenic.com/mercurial)

hg qclone http://hg.lunch.org.uk/Anthill

will get you the Anthill CVS converted to Mercurial and all my changes on top 
of that as mq patches.

(Continue reading)

Kenneth Burgener | 20 Feb 00:03

Re: anthill - subversion tags and versions (period not an underscore) (FIXED)

Jim Hague wrote:
> I'm away from my Anthill setup at the moment, so I haven't tested it, but the 
> attached patch builds and looks about right. Unfortunately it's a patch to 
> Anthill + the other patches I have, so it will probably need a bit of 
> wiggling to go onto your sources (and you won't have the Mercurial repository 
> adapter).
> 
> Does that help at all?

I simply deleted the Mercurial patch section, and it worked out great. 
My tag was created with "."s instead of "_"s and I was also able to 
"build version".  Thanks for the patch!

Any chance this will make it to the official release, so others may 
benefit from this fix?

Thank you,
Kenneth
kvkrishna | 20 Feb 08:22
Favicon

Newbee: Anthill for Serena ChangeMan (Unix box)


Hi,

Basic Info:
Anthill version 1.8.1.303 
Running on Java 1.4.2_04

I am using Anthill for a project, configured for CVS repository, which is
working fine. Now, I wanted to switch over to Serena ChangeMan repository,
So I have configured accordingly, and using the PVCS Adapter to do the
build, but not sure where went wrong, build fails and nothing in the build
log. 

I believe I have provided the correct input for PVCS adapter...is there
anything extra update is required to adopt the anthill for Serena ChangeMan
using the PVCS adapter? or Am I using the wrong adapter for Serena
ChangeMan, can anyone advice please...I am stuck literally..Appreciate your
immediate response...

thanks for your help in advance...
--

-- 
View this message in context: http://www.nabble.com/Newbee%3A-Anthill-for-Serena-ChangeMan-%28Unix-box%29-tp15583704p15583704.html
Sent from the Anthill - General mailing list archive at Nabble.com.
Eric Minick | 20 Feb 17:03

Re: Newbee: Anthill for Serena ChangeMan (Unix box)

Hi,

I suspect ChangeMan would require an adapter customized for it - unless 
the commands are identical to the standard PVCS product. You should be 
able to find additional logging in the standard out log of your servlet 
container.

Regards,

Eric

kvkrishna wrote:
> Hi,
>
> Basic Info:
> Anthill version 1.8.1.303 
> Running on Java 1.4.2_04
>
> I am using Anthill for a project, configured for CVS repository, which is
> working fine. Now, I wanted to switch over to Serena ChangeMan repository,
> So I have configured accordingly, and using the PVCS Adapter to do the
> build, but not sure where went wrong, build fails and nothing in the build
> log. 
>
> I believe I have provided the correct input for PVCS adapter...is there
> anything extra update is required to adopt the anthill for Serena ChangeMan
> using the PVCS adapter? or Am I using the wrong adapter for Serena
> ChangeMan, can anyone advice please...I am stuck literally..Appreciate your
> immediate response...
>
(Continue reading)


Gmane