Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 487931

Summary: [Polarsys] Creation of new repositories for Capella extensions
Product: Community Reporter: Christophe Gatti <christophe.gatti>
Component: GitAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: benoit.langlois, denis.roy, jean.barata, matthieu.helleboid, stephane.bonnet
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Christophe Gatti CLA 2016-02-17 07:52:38 EST
Hi,


I would like to ask for the creation of 4 Git repository at PolarSys:
 
* http://polarsys.org/c/capella/capella-xmlpivot.git/
* http://polarsys.org/c/capella/capella-basic-vp.git/
* http://polarsys.org/c/capella/capella-xhtml-docgen.git/
* http://polarsys.org/c/capella/capella-sss-transition.git/

( container is http://polarsys.org/c/capella )

and configured for gerrit using the Capella permissions parent 

( "capella/capella": permissions/capella )

( See https://polarsys.org/r/#/admin/projects/permissions/capella )

Thus, Gerrit view should be:

* capella/capella-xmlpivot
* capella/capella-basic-vp
* capella/capella-xhtml-docgen
* capella/capella-sss-transition

( See https://polarsys.org/r/#/admin/projects/ )

Regards,


Christophe.
Comment 1 Stephane Bonnet CLA 2016-02-17 09:20:05 EST
+1
Comment 2 Eclipse Webmaster CLA 2016-02-18 15:37:45 EST
Done.

-M.
Comment 3 Christophe Gatti CLA 2016-03-02 03:41:41 EST
Hi,


I reopen this bug so as to ask you whether you could clone the contents (sources, branches, tags, etc.) of the capella/capella-addons repository to each repository newly created: 

* capella/capella-xmlpivot
* capella/capella-basic-vp
* capella/capella-xhtml-docgen
* capella/capella-sss-transition

So that I could delete unnecessary files in each repository and keep track of the history of the developments for those.

Best regards,

Christophe.
Comment 4 Denis Roy CLA 2016-03-02 11:09:56 EST
Christophe, I can copy the exact contents of one repo to all four, so they would all be identical. You'd lose everything committed there since the creation of those new repos.

Is that what you're asking for?
Comment 5 Christophe Gatti CLA 2016-03-07 04:29:19 EST
(In reply to Denis Roy from comment #4)
> Christophe, I can copy the exact contents of one repo to all four, so they
> would all be identical. You'd lose everything committed there since the
> creation of those new repos.
> 
> Is that what you're asking for?

Hi Denis,

We will not push to capella-addons repository anymore. 
You can copy the exact contents of capella-addons repo to all four. 
But do not just copy please, clone it to all four in the sense we would not want to lose the history. 

Once it is done, I will update the different jobs on our HIPP.

Then, I will ask for the deletion of the capella-addons repo in a next time. 

Best regards,

Christophe.
Comment 6 Christophe Gatti CLA 2016-03-14 14:05:21 EDT
Hi Denis,

Did you manage to copy the exact contents of the capella-addons repo to all four and keeping history?

Best regards,

Christophe.
Comment 7 Denis Roy CLA 2016-03-15 16:01:43 EDT
I've copied the addons repo four times, as requested:

https://git.polarsys.org/r/#/admin/projects/?filter=capella

Please let me know if that works for you.
Comment 8 Christophe Gatti CLA 2016-03-16 12:16:49 EDT
Hi Denis,

While looking at the four repositories, they seem to be empty:

https://git.polarsys.org/c/capella/capella-basic-vp.git/
https://git.polarsys.org/c/capella/capella-sss-transition.git/
https://git.polarsys.org/c/capella/capella-xhtml-docgen.git/
https://git.polarsys.org/c/capella/capella-xmlpivot.git/

Maybe something went wrong during the copy?

Regards,

Christophe.
Comment 9 Denis Roy CLA 2016-03-17 10:52:26 EDT
Christophe,

Instead of copying the repo files, I have cloned the repo into the four new ones. That seems to work better.
Comment 10 Christophe Gatti CLA 2016-03-21 06:26:56 EDT
Hi Denis,


I just checked, the "clone" action worked, however only the "master" branch has been cloned. Could you please do the same with "v1.0.x" and "v0.8.x" branches?

Best regards,

Christophe.
Comment 11 Denis Roy CLA 2016-03-21 10:05:26 EDT
This seems to look better:

http://git.polarsys.org/c/capella/capella-basic-vp.git/

I did:
polarsys:/gitroot/capella# git clone --bare capella-addons.git capella-xhtml-docgen.git

cd capella-addons.git
git push --mirror ../capella-xhtml-docgen.git

I did get one error:
 ! [remote rejected] refs/notes/review -> refs/notes/review (hook declined)


Not sure if you need that refspec or not?
Comment 12 Christophe Gatti CLA 2016-03-21 13:29:31 EDT
Hi Denis,

Did you try using git clone with --mirror option? 
We now see the branches v0.8.x and v1.0.x in each repository, that's great!

Moreover, could you please make the Gerrit repository capella-addons readonly?
So that we will keep the records of our reviews but we will use Gerrit for each repository. 

Regards,

Christophe.
Comment 13 Denis Roy CLA 2016-03-21 14:08:21 EDT
I've made capella-addons read-only as requested.

Closing as FIXED; please reopen if you need anything.
Comment 14 Christophe Gatti CLA 2016-03-30 10:59:00 EDT
(In reply to Denis Roy from comment #13)
> I've made capella-addons read-only as requested.
> 
> Closing as FIXED; please reopen if you need anything.

Hi Denis,

Thanks for the job done, it works perfectly now. 
Just a little thing to ask, could you please: 
- erase all contents in capella-xmlpivot (http://polarsys.org/c/capella/capella-xmlpivot.git/) repository;
- clone again the capella-addons repo with the 3 branches (v0.8.x ; v1.0.x ; master) into it? 

Thanks, we made some mistakes while attempting to merge branches into this repo that's the reason why we would like to start with a clean slate.

Regards,

Christophe.
Comment 15 Denis Roy CLA 2016-03-30 16:53:00 EDT
Done. Please let me know if it works.
Comment 16 Jean Barata CLA 2016-03-31 05:29:26 EDT
Hi Denis.

It's ok, thank you very much.

Jean