mercurial-server migration

69 views
Skip to first unread message

Cédric Krier

unread,
Dec 15, 2014, 5:50:03 PM12/15/14
to tryton
Hi,

I started to work on migrate the current infrastructure of mercurial
repositories to mercurial-server.
I have some questions about the transition where we could solve some
issue.

- I'm thinking about removing the subfolder modules/ to put all modules
on top level. Because of the hgnested, we can not ask hgwebdir to show
all subdirectories otherwise all modules will be duplicated under
trytond/, so we don't see currently the modules directly, that's why I
propose to move all modules under /. It will break all repository that
point to the old path.

- I'm also thinking about removing old redirection from series to root
like 3.0 -> /

Once the migration will be done, committers and translators will have
access using this paths:

ssh://h...@hg.tryton.org/trytond

I already copied all the ssh keys but the idea will be to store them in
the roundup user profile.

When I will do the migration, I espect to have a downtime of
hg.tryton.org for few hours. I will drop an email here on start and end.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Korbinian Preisler

unread,
Dec 19, 2014, 6:15:31 AM12/19/14
to tryto...@googlegroups.com
Hi,

On 15.12.2014 23:47, Cédric Krier wrote:
> Hi,
>
> I started to work on migrate the current infrastructure of mercurial
> repositories to mercurial-server.
> I have some questions about the transition where we could solve some
> issue.
>
> - I'm thinking about removing the subfolder modules/ to put all modules
> on top level. Because of the hgnested, we can not ask hgwebdir to show
> all subdirectories otherwise all modules will be duplicated under
> trytond/, so we don't see currently the modules directly, that's why I
> propose to move all modules under /. It will break all repository that
> point to the old path.
For now it was quite simple to clone all modules as in they are separated.
As we are working on older versions we cannot use hgnested any more
since the usage of branches. I would really miss the current structure as
i only see the solution to manage a list of repos that are not modules
and to
skip them when i want to clone all modules without hgnested.
>
> - I'm also thinking about removing old redirection from series to root
> like 3.0 -> /
+1

Cédric Krier

unread,
Dec 19, 2014, 12:00:04 PM12/19/14
to tryto...@googlegroups.com
On 19 Dec 12:15, Korbinian Preisler wrote:
> Hi,
>
> On 15.12.2014 23:47, Cédric Krier wrote:
> > Hi,
> >
> > I started to work on migrate the current infrastructure of mercurial
> > repositories to mercurial-server.
> > I have some questions about the transition where we could solve some
> > issue.
> >
> > - I'm thinking about removing the subfolder modules/ to put all modules
> > on top level. Because of the hgnested, we can not ask hgwebdir to show
> > all subdirectories otherwise all modules will be duplicated under
> > trytond/, so we don't see currently the modules directly, that's why I
> > propose to move all modules under /. It will break all repository that
> > point to the old path.
> For now it was quite simple to clone all modules as in they are separated.

OK, let's keep it like that. I find a way to put on the index page a
small table with the repository layout see http://hg.tryton.org/

> As we are working on older versions we cannot use hgnested any more
> since the usage of branches. I would really miss the current structure as
> i only see the solution to manage a list of repos that are not modules
> and to
> skip them when i want to clone all modules without hgnested.

I think we could create shared repositories for each series with only
the subset of modules that haves the branch. I will try this when
migrating the repository structure (probably this WE).

Cédric Krier

unread,
Dec 20, 2014, 10:25:03 AM12/20/14
to tryton
On 15 Dec 23:47, Cédric Krier wrote:
> Hi,
>
> I started to work on migrate the current infrastructure of mercurial
> repositories to mercurial-server.
> I have some questions about the transition where we could solve some
> issue.
>
> - I'm thinking about removing the subfolder modules/ to put all modules
> on top level. Because of the hgnested, we can not ask hgwebdir to show
> all subdirectories otherwise all modules will be duplicated under
> trytond/, so we don't see currently the modules directly, that's why I
> propose to move all modules under /. It will break all repository that
> point to the old path.
>
> - I'm also thinking about removing old redirection from series to root
> like 3.0 -> /
>
> Once the migration will be done, committers and translators will have
> access using this paths:
>
> ssh://h...@hg.tryton.org/trytond
>
> I already copied all the ssh keys but the idea will be to store them in
> the roundup user profile.
>
> When I will do the migration, I espect to have a downtime of
> hg.tryton.org for few hours. I will drop an email here on start and end.

Migration done.
So committers and translators should update their local clone to use the
new path:

default = ssh://h...@hg.tryton.org/trytond

The wiki page has been updated:
http://code.google.com/p/tryton/wiki/Mercurial

Bonus: committers can create repositories under /sandbox/**

So report any issue you could encounter.
Reply all
Reply to author
Forward
0 new messages