Re: CMSP 19. Make repository resource a hash

2009-11-04 Thread Slaven Rezic

David Cantrell wrote:

On Sun, Nov 01, 2009 at 08:01:50PM +0100, Slaven Rezic wrote:

David Golden wrote:

 resources:
repository:
   web: http://github.com/2shortplanks/test-time-hires
   url: git://github.com/2shortplanks/test-time-hires.git
   format: git
   type: github
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.
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?


If you think I'm putting a username/password for read/write access to my
repo into META.yml, you're dead wrong!



We're talking here about public repositories. Sourceforge for instance 
uses username=anonymous and password=empty for anonymous access. I've 
seen other CVS repos with some dummy non-empty password.


Regards,
Slaven


Re: CMSP 19. Make repository resource a hash

2009-11-04 Thread Slaven Rezic

Slaven Rezic wrote:

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.




Ah, there's already prior art. www.ohloh.net also needs the source 
repository (they call it enlistment) fully specified. Here's what may 
be entered in ohloh's forms:


CVS:
  Enter the source control URL (e.g. 
:pserver:anonymous:@myproject.cvs.sourceforge.net:/cvsroot/myproject)

  Username
  Password
  CVS module name

SVN:
  Enter the source control URL (e.g. 
svn://mywebsite.org/svn/myproject/trunk)

  Username
  Password

Mercurial:
  Enter the source control URL (e.g. 
http://www.mywebsite.org/pub/scm/hg/myproject)


Git:
  Enter the source control URL (e.g. 
git://git.mywebsite.org/pub/scm/git/myproject.git)

  Enter an optional Git branch name

Bazaar:
  Enter the source control URL (e.g. bzr://www.mywebsite.org/myproject.bzr)


So I think the optional branch for git should be added to the spec.


Re: CMSP 19. Make repository resource a hash

2009-10-31 Thread Barbie
On Sat, Oct 31, 2009 at 03:45:31PM -0400, David Golden wrote:
 On Sat, Oct 31, 2009 at 2:05 PM, Barbie bar...@missbarbell.co.uk wrote:
  Agreed on both counts. type as proposed can be easily derived from the
  URLs from the examples. Is there a use case for its use?
 
 Both Subversion, and Git repositories can use http://; URLs, so there
 needs to disambiguate them.

No. I meant type not format. In the example given, the URL was
http://github.com and the type was github. It seemed a bit redundant
to explicitly say what public website repository is being used, when it
was in the domain part of the URL.

Cheers,
Barbie.
-- 
Birmingham Perl Mongers http://birmingham.pm.org
Memoirs Of A Roadie http://barbie.missbarbell.co.uk
CPAN Testers Blog http://blog.cpantesters.org
YAPC Conference Surveys http://yapc-surveys.org




Re: CMSP 19. Make repository resource a hash

2009-10-10 Thread David Golden
On Fri, Oct 9, 2009 at 10:33 PM, Ricardo Signes
perl.cpanw...@rjbs.manxome.org wrote:
 * David Golden xda...@gmail.com [2009-10-09T07:51:06]
 19. Make repository resource a hash

 Branch available:
 http://github.com/rjbs/cpan-meta-spec/commits/19-repository-hash

Seems to me that url and type should be mandatory and web should be optional.

-- David


Re: CMSP 19. Make repository resource a hash

2009-10-10 Thread Shlomi Fish
On Friday 09 Oct 2009 15:14:55 Ricardo Signes wrote:
 * David Golden xda...@gmail.com [2009-10-09T07:51:06]
 
  19. Make repository resource a hash
 
  [Note, a separate Make repository more machine readable proposal
  has been merged into this one.]
 
 Agreed.
 

Doesn't sound too bad. +1.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Original Riddles - http://www.shlomifish.org/puzzles/

Chuck Norris read the entire English Wikipedia in 24 hours. Twice.


Re: CMSP 19. Make repository resource a hash

2009-10-09 Thread Ricardo Signes
* David Golden xda...@gmail.com [2009-10-09T07:51:06]
 19. Make repository resource a hash
 
 [Note, a separate Make repository more machine readable proposal
 has been merged into this one.]

Agreed.

-- 
rjbs


Re: CMSP 19. Make repository resource a hash

2009-10-09 Thread Steffen Mueller

David Golden wrote:

19. Make repository resource a hash


+1

Steffen


Re: CMSP 19. Make repository resource a hash

2009-10-09 Thread David E. Wheeler

On Oct 9, 2009, at 7:12 AM, Graham Barr wrote:


resources:
   repository:
  web: http://github.com/2shortplanks/test-time-hires
  url: git://github.com/2shortplanks/test-time-hires.git
  format: git
  type: github


+1


+1, though I think I'd use vcs instead of format.

Best,

David


Re: CMSP 19. Make repository resource a hash

2009-10-09 Thread David Golden
On Fri, Oct 9, 2009 at 7:51 AM, David Golden xda...@gmail.com wrote:
 19. Make repository resource a hash
  resources:
     repository:
        web: http://github.com/2shortplanks/test-time-hires
        url: git://github.com/2shortplanks/test-time-hires.git
        format: git
        type: github

+1, though I'd drop type.  I don't have strong opinions over whether
format is renamed to vcs or whatever.

-- David


Re: CMSP 19. Make repository resource a hash

2009-10-09 Thread Graham Barr

On Oct 9, 2009, at 3:21 PM, David Golden wrote:

On Fri, Oct 9, 2009 at 7:51 AM, David Golden xda...@gmail.com wrote:

19. Make repository resource a hash
 resources:
repository:
   web: http://github.com/2shortplanks/test-time-hires
   url: git://github.com/2shortplanks/test-time-hires.git
   format: git
   type: github


+1, though I'd drop type.  I don't have strong opinions over whether
format is renamed to vcs or whatever.


yeah I agree. I was too wondering why two fields. I nearly suggested  
dropping

type as-is, but renaming format as type

Graham.



Re: CMSP 19. Make repository resource a hash

2009-10-09 Thread Ricardo Signes
* David Golden xda...@gmail.com [2009-10-09T07:51:06]
 19. Make repository resource a hash

Branch available:
http://github.com/rjbs/cpan-meta-spec/commits/19-repository-hash

-- 
rjbs