Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Fwd: [Bug 326926] New: API to configure and import SCM URLs

This is useful but the problem I've found when trying to use Git and Maven is the fact that Git doesn't appear to actually define a useful scm url.  The only definition of a Git url I can find is for the entire repository (eg "scm:git:ssh://host:post/my/path/repo.git")*. This path works for the root pom, but for child poms the way maven expects to the url to be constructed would be "scm:git:ssh://host:post/my/path/repo.git/child/". However git doesn't actually seem to provide any means to define a url locating a file within a repository. Similarly you'd expect a means to define the branch or tag to identify which version of the file it is - in traditional VCSs this is embedded as part of the path.

In order for this style of feature to work, either we are going to have to expect the bundle to point to the root of the repo and hope the user can work out where within that repo that code is, or we need an extended form of url. Because of this internally we've adopted a url of the form "scm:git:ssh://host:post/my/path/repo.git?branch=master&path=/child/". This provides the same level of accuracy as SVN urls generally do. Obviously the hash could also be used which may provide a more precise definition of version but may be less usable if you want to use it to browse a source tree.

I've looked hard and couldn't find any official scheme to do the above, hopefully someone will correct me and point to a page where it is defined...

Thomas

> -----Original Message-----
> From: egit-dev-bounces@xxxxxxxxxxx [mailto:egit-dev-bounces@xxxxxxxxxxx] On
> Behalf Of Alex Blewitt
> Sent: 04 October 2010 17:06
> To: EGit developer discussion
> Subject: [egit-dev] Fwd: [Bug 326926] New: API to configure and import SCM
> URLs
>
> This should be something of interest to EGit developers. Basically, it
> allowed for an Eclipse-SourceReferences: to contain a Maven SCM URL
> and permit files to be checked out from that tag. This would allow
> (for example) a bundle to declare back to where it originated, like
> the pom, but that follows the bundle after compilation/deployment.
>
> Since Maven now has Git support, we should probably see if we can hook
> into that format for representing Git URLs, then be able to import a
> bundle's source code by right-clicking and doing 'checkout from...' to
> acquire the source for that bundle.
>
> Alex
>
> Begin forwarded message:
>
> > From: bugzilla-daemon@xxxxxxxxxxx
> > Date: October 4, 2010 15:25:39 BST
> > To: alex.blewitt@xxxxxxxxx
> > Subject: [Bug 326926] New: API to configure and import SCM URLs
> >
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=326926
> > Product/Component: Platform / Team
> >
> >           Summary: API to configure and import SCM URLs
> >    Classification: Eclipse
> >           Product: Platform
> >           Version: 3.7
> >          Platform: PC
> >        OS/Version: Windows XP
> >            Status: NEW
> >          Severity: enhancement
> >          Priority: P3
> >         Component: Team
> >        AssignedTo: platform-team-inbox@xxxxxxxxxxx
> >        ReportedBy: Darin_Wright@xxxxxxxxxx
> >                CC: jeff@xxxxxxxxxxxxxxxxx, alex.blewitt@xxxxxxxxx,
> >                    martin.oberhuber@xxxxxxxxxxxxx
> >            Blocks: 320552
> >
> >
> > PDE requires an API from Team to materialize workspace projects from
> > SCM URLs.
> > SCM URLs are URIs that refer to projects/source code in different
> > repositories
> > (similar in concept to "project set format" files).
> >
> > SCM URLs can be specified in bundle Manifests to refer to source code
> > associated with a bundle. Having support from team to materialize
> > projects in
> > the workspace allows users to easily import the source code
> > associated with
> > bundles as workspace projects.
> >
> > The following WIKI page describes the current and desired API/
> > implementation:
> >
> >   http://wiki.eclipse.org/PDE/Importing_SCMURLs
> >
> > PDE originally provided this function in 3.6 using internal code and
> > extension
> > points. During 3.7, we'd like to make a public API to allow other team
> > providers to participate.
> >
> > There is also some relevant history on bug 195729.
> >
> > --
> > Configure bugmail: https://bugs.eclipse.org/bugs/userprefs.cgi?tab=email
> > ------- You are receiving this mail because: -------
> > You are on the CC list for the bug.
>
> _______________________________________________
> egit-dev mailing list
> egit-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/egit-dev


**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@xxxxxxx and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************


Back to the top