David Golden wrote:
On Sun, Nov 1, 2009 at 2:01 PM, Slaven Rezic <sre...@cpan.org> wrote:
"url" is not enough to describe how to checkout from a CVS repository. At
least username and password (for "cvs login") and url and module (for  "cvs
-d url co module") are needed.

Can you give a specific example?  We're in overtime for finalizing the
spec, so we need to nail this quick.

For cvs we don't need the url parameter but rather:

repository => {
  type => "cvs",
  vc_spec => {
    username => "anonymous",
    password => "",
repository => ":pserver:anonym...@srezic.cvs.sourceforge.net:/cvsroot/srezic",
    module => "Tk-Pod",
    port => undef, # set if different from standard 2401
  },
  web => ...,
  ...
}

The contents inside vc_spec are completely VC-specific. For CVS it would be these parameters, other VCs could have other parameters (sorry, I don't know anything else but cvs, svn, and git).

Theoretetically the URL needed for svn or git could also go into such a vc_spec structure, but this would probably be too complicated.



Do we need the distinction between anonymous (read-only) and read-write
access? Or should be assume that only the read-only specification is
necessary?

I'd argue the latter for things that distinguish.


I think it's also sufficient. But there should probably be a note in the META specification that the read-only repository is meant.

Regards,
    Slaven

Reply via email to