Multiple Java Projects in one Mercurial repository

483 views
Skip to first unread message

vogella

unread,
Nov 23, 2009, 12:29:08 AM11/23/09
to MercurialEclipse
Hi,

I would like to have several Java project / Eclipse plugins and store
them in one Mercurial repository. How can I do this with Mercurial /
the Eclipse plugin for Mercurial?

The examples I could find via Google always discuss the one repository
== one project case.

I also looked at the example of the Eclipse Plugin for Mercurial but
this seem to me also using one project for the repository.

Best regards, Lars

Andrei Loskutov

unread,
Nov 23, 2009, 1:40:09 AM11/23/09
to mercuria...@googlegroups.com, vogella
Hi,

the point is, that plugin can't create repositories outside the workspace,
but it can clone repositories with multiple projects.

So you need initially create repo outside of Eclipse and add your projects
to it. After that, you can clone the repo with plugin etc.

One Examle:
http://code.google.com/p/filesync4eclipse/source/browse/

On Mon, 23 Nov 2009 06:29:08 +0100, vogella <lars....@googlemail.com>
wrote:
--
Kind regards,
Mit freundlichen Grᅵᅵen
Andrei Loskutov

@Home: http://andrei.gmxhome.de/

vogella

unread,
Nov 23, 2009, 2:11:41 PM11/23/09
to MercurialEclipse
Is this feature(create new projects in a mercurial repository) planned
for the plugin?

At least this would represent my workflow better. I currently use svn,
create a project at at some point publish it to my svn repository via
svn (using multiple project layout settings)

On 22 Nov., 22:40, "Andrei Loskutov" <losku...@gmx.de> wrote:
> Hi,
>
> the point is, that plugin can't create repositories outside the workspace,  
> but it can clone repositories with multiple projects.
>
> So you need initially create repo outside of Eclipse and add your projects  
> to it. After that, you can clone the repo with plugin etc.
>
> One Examle:http://code.google.com/p/filesync4eclipse/source/browse/
>
> On Mon, 23 Nov 2009 06:29:08 +0100, vogella <lars.vo...@googlemail.com>  
> wrote:
>
> > Hi,
>
> > I would like to have several Java project / Eclipse plugins and store
> > them in one Mercurial repository. How can I do this with Mercurial /
> > the Eclipse plugin for Mercurial?
>
> > The examples I could find via Google always discuss the one repository
> > == one project case.
>
> > I also looked at the example of the Eclipse Plugin for Mercurial but
> > this seem to me also using one project for the repository.
>
> --
> Kind regards,
> Mit freundlichen Gr en

vogella

unread,
Nov 23, 2009, 2:06:08 PM11/23/09
to MercurialEclipse
Hi Andrei,

thank you. Ok, this makes it clear. I tried to push new projects to
the repositories via the plugin and this failed. From your answer it
is clean that this functionality is currently not supported by the
plugin.

I will try via the hg command to create several projects in one
repository. Thank you again.

Best regards, Lars

On 22 Nov., 22:40, "Andrei Loskutov" <losku...@gmx.de> wrote:
> Hi,
>
> the point is, that plugin can't create repositories outside the workspace,  
> but it can clone repositories with multiple projects.
>
> So you need initially create repo outside of Eclipse and add your projects  
> to it. After that, you can clone the repo with plugin etc.
>
> One Examle:http://code.google.com/p/filesync4eclipse/source/browse/
>
> On Mon, 23 Nov 2009 06:29:08 +0100, vogella <lars.vo...@googlemail.com>  
> wrote:
>
> > Hi,
>
> > I would like to have several Java project / Eclipse plugins and store
> > them in one Mercurial repository. How can I do this with Mercurial /
> > the Eclipse plugin for Mercurial?
>
> > The examples I could find via Google always discuss the one repository
> > == one project case.
>
> > I also looked at the example of the Eclipse Plugin for Mercurial but
> > this seem to me also using one project for the repository.
>
> --
> Kind regards,
> Mit freundlichen Gr en

Andrei Loskutov

unread,
Nov 23, 2009, 3:40:23 PM11/23/09
to mercuria...@googlegroups.com
Not yet, but it is worth to think about.

I think, if you create a usual project inside already existing repo, you
should be able to "share" the project with mercurial from Eclipse.

What you definitely can't do from Eclipse right now is to create a hg repo
from within Eclipse, which hg root is "below" of Eclipse workspace or
"below" of any Eclipse project location.

A possible workflow would be:
- create some projects located under same common root
- select them in Eclipse and "Share in a common hg repo" wizard...

On Mon, 23 Nov 2009 20:11:41 +0100, vogella <lars....@googlemail.com>
wrote:

> Is this feature(create new projects in a mercurial repository) planned
> for the plugin?
>
> At least this would represent my workflow better. I currently use svn,
> create a project at at some point publish it to my svn repository via
> svn (using multiple project layout settings)
>
> On 22 Nov., 22:40, "Andrei Loskutov" <losku...@gmx.de> wrote:
>> Hi,
>>
>> the point is, that plugin can't create repositories outside the
>> workspace, but it can clone repositories with multiple projects.
>>
>> So you need initially create repo outside of Eclipse and add your
>> projects to it. After that, you can clone the repo with plugin etc.
>>
>> One Examle:http://code.google.com/p/filesync4eclipse/source/browse/

--
Kind regards,
Mit freundlichen Grᅵᅵen

vogella

unread,
Nov 23, 2009, 11:35:34 PM11/23/09
to MercurialEclipse
Hi Andrei,

thanks again. If I get you right it is currently not possible to share
separate (independent created) projects in one repository. If imported
a existing hg repository and if I create a new Java / Plugin project
it creates it outside this repository.

I my opinion this colliates with the Eclipse way of creating projects.
I always try to have lots of plugin projects to keep the functionality
separated.

Best regards, Lars

On 23 Nov., 12:40, "Andrei Loskutov" <losku...@gmx.de> wrote:
> Not yet, but it is worth to think about.
>
> I think, if you create a usual project inside already existing repo, you  
> should be able to "share" the project with mercurial from Eclipse.
>
> What you definitely can't do from Eclipse right now is to create a hg repo  
>  from within Eclipse, which hg root is "below" of Eclipse workspace or  
> "below" of any Eclipse project location.
>
> A possible workflow would be:
>   - create some projects located under same common root
>   - select them in Eclipse and "Share in a common hg repo" wizard...
>
> On Mon, 23 Nov 2009 20:11:41 +0100, vogella <lars.vo...@googlemail.com>  
> wrote:
>
>
>
> > Is this feature(create new projects in a mercurial repository) planned
> > for the plugin?
>
> > At least this would represent my workflow better. I currently use svn,
> > create a project at at some point publish it to my svn repository via
> > svn (using multiple project layout settings)
>
> > On 22 Nov., 22:40, "Andrei Loskutov" <losku...@gmx.de> wrote:
> >> Hi,
>
> >> the point is, that plugin can't create repositories outside the  
> >> workspace, but it can clone repositories with multiple projects.
>
> >> So you need initially create repo outside of Eclipse and add your  
> >> projects to it. After that, you can clone the repo with plugin etc.
>
> >> One Examle:http://code.google.com/p/filesync4eclipse/source/browse/
>
> --
> Kind regards,
> Mit freundlichen Gr en

vogella

unread,
Nov 23, 2009, 11:56:38 PM11/23/09
to MercurialEclipse
Hi Andrei,

thanks again. If I get you right it is currently not possible to share
separate (independent created) projects in one repository. If imported
a existing hg repository and if I create a new Java / Plugin project
it creates it outside this repository.

I my opinion this colliates with the Eclipse way of creating projects.
I always try to have lots of plugin projects to keep the functionality
separated.

Best regards, Lars

On 23 Nov., 12:40, "Andrei Loskutov" <losku...@gmx.de> wrote:
> Not yet, but it is worth to think about.
>
> I think, if you create a usual project inside already existing repo, you  
> should be able to "share" the project with mercurial from Eclipse.
>
> What you definitely can't do from Eclipse right now is to create a hg repo  
>  from within Eclipse, which hg root is "below" of Eclipse workspace or  
> "below" of any Eclipse project location.
>
> A possible workflow would be:
>   - create some projects located under same common root
>   - select them in Eclipse and "Share in a common hg repo" wizard...
>
> On Mon, 23 Nov 2009 20:11:41 +0100, vogella <lars.vo...@googlemail.com>  
> wrote:
>
>
>
> > Is this feature(create new projects in a mercurial repository) planned
> > for the plugin?
>
> > At least this would represent my workflow better. I currently use svn,
> > create a project at at some point publish it to my svn repository via
> > svn (using multiple project layout settings)
>
> > On 22 Nov., 22:40, "Andrei Loskutov" <losku...@gmx.de> wrote:
> >> Hi,
>
> >> the point is, that plugin can't create repositories outside the  
> >> workspace, but it can clone repositories with multiple projects.
>
> >> So you need initially create repo outside of Eclipse and add your  
> >> projects to it. After that, you can clone the repo with plugin etc.
>
> >> One Examle:http://code.google.com/p/filesync4eclipse/source/browse/
>
> --
> Kind regards,
> Mit freundlichen Gr en

Matthieu Brucher

unread,
Jan 11, 2010, 7:58:04 AM1/11/10
to MercurialEclipse
Hi,

I've tried to do this, but Eclipse (Ganymede) told me it couldn't
create .project in the root folder.
What I tried to do is:
- Import
-> CLone from existing repository
-> use .project to create projects

The last option is what triggered an error with Eclipse. When
unchecking it, it imported all the folders in one project instead of
several :|

Can you give us the sequence of things to do to import several
projects from a single Mercurial repository?

Matthieu

On 23 nov 2009, 08:40, "Andrei Loskutov" <losku...@gmx.de> wrote:
> Hi,
>
> the point is, that plugin can't create repositories outside the workspace,  
> but it can clone repositories with multiple projects.
>
> So you need initially create repo outside of Eclipse and add your projects  
> to it. After that, you can clone the repo with plugin etc.
>
> One Examle:http://code.google.com/p/filesync4eclipse/source/browse/
>

> On Mon, 23 Nov 2009 06:29:08 +0100, vogella <lars.vo...@googlemail.com>  


> wrote:
>
> > Hi,
>
> > I would like to have several Java project / Eclipse plugins and store
> > them in one Mercurial repository. How can I do this with Mercurial /
> > the Eclipse plugin for Mercurial?
>
> > The examples I could find via Google always discuss the one repository
> > == one project case.
>
> > I also looked at the example of the Eclipse Plugin for Mercurial but
> > this seem to me also using one project for the repository.
>
> --
> Kind regards,

> Mit freundlichen Gr en

rbertoche

unread,
Feb 8, 2010, 12:11:08 PM2/8/10
to MercurialEclipse
I was having a related problem, but using this pluginm qt-eclipse
plugin and eclipse-C/C++. Some arquives need to be at project's root
or qt-eclipse won't 'qmake' them, but obviously those archives weren't
at hg repo root. So I made a temporary workaround:
Say, hg-eclipse project was at ~/eclipse;
So I created a new project at ~/eclipse/myproject . Makefiles were
created and compiled there.
Mercurial-Eclipse was smart enough to let me do hg things in files
inside both eclipse projects.
Don't know if it was working 100%. Found a better solution to my
problem.
Best,
Raphael
Reply all
Reply to author
Forward
0 new messages