On Sun, 2006-02-12 at 13:57 -0700, Julian Wood wrote:
> On Feb 12, 2006, at 8:05 AM, Trygve Laugstøl wrote:
> 
> > On Sat, 2006-02-11 at 12:40 -0700, Julian Wood wrote:
> >> Funny - I made one of these just a couple of days ago, and was going
> >> to ask the same question, with regards to interest.
> >>
> >
> > With Subversion I'm sure that you can ask for the revision of the file
> > directly from the remote repository like this:
> >
> > $ svn info https://svn.codehaus.org/mojo/trunk/
> 
> Yes, that's how I implemented it. I'm not sure how I should do unit  
> tests for this plugin. Currently they are live against my own svn  
> server, for the plugin itself. That obviously needs to be changed.

Not sure how that can be unit testet. What I've done in other similar
cases is that I've tried to connect to the host and just returned if the
connection failed with a big warning. It will then be up to the one
doing the release to make sure that all tests pass.

> >
> > I'm pretty sure that support for reading the SCM URL from a working  
> > copy
> > was added a while back so that should be pretty easy to implement in
> > Maven SCM as it is.
> 
> I get it directly from the pom. Do you think that matters?

Didn't think of the pom, it should definitely be sufficient.

--
Trygve

Reply via email to