Currently, no.
As a workaround, you can always use the importer plugin and copy the project then delete
it with delete-project plugin. We are currently doing that but this is far from ideal, it takes a
very long time to "rename" projects when they have a lot of changes. Users keep working
on the source repo while copy is happening, you need to resume copy...and so on.
For this reason, we started to implement a rename-project plugin. So far, we have a
working proof of concept that renames projects which do not have children. The plugin is
based on 2.14.
I was planing to open source it eventually when we have a bit more done but maybe I
can open source it sooner if there is interest.
I checked the empty project on gerrit-review and it's owned by plugins-rename-project
group. Is there someone (Edwin?) who belongs to that group who could add me as a
member?
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 6 Mar 2018, at 23:19, Luca Milanesio <luca.mi...@gmail.com> wrote:
Luca.
Luca.
To unsubscribe, email repo-disc...@googlegroups.com
Currently, no.
As a workaround, you can always use the importer plugin and copy the project then delete
it with delete-project plugin. We are currently doing that but this is far from ideal, it takes a
very long time to "rename" projects when they have a lot of changes. Users keep working
on the source repo while copy is happening, you need to resume copy...and so on.
For this reason, we started to implement a rename-project plugin. So far, we have a
working proof of concept that renames projects which do not have children. The plugin is
based on 2.14.
I was planing to open source it eventually when we have a bit more done but maybe I
can open source it sooner if there is interest.
I checked the empty project on gerrit-review and it's owned by plugins-rename-project
group. Is there someone (Edwin?) who belongs to that group who could add me as a
member?
Hugo
On Tuesday, March 6, 2018 at 3:01:07 PM UTC-5, thomasmu...@yahoo.com wrote:Hi, is there a supported way to rename projects in gerrit?I see there is a repo for this but no code in it https://gerrit.googlesource.com/plugins/rename-project/
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For very large repositories (multiple GBs) even emptying the repo will retain it’s size, right? So somebody might clone the repo with the old URI, wait hours for the clone to complete (potentially), just to discover the OBSOLETE file – not quite optimal IMHO. Just adding my 2 cent, I don’t have real solutions at hand ;)
Cheers,
Markus
--
--
To unsubscribe, email
repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
We had implemented in the past a "rename project" plugin and presented to Shawn ... but his objection was: how do you manage the situation where the same name is then reused with a new project?The problem is the following:T-0: Create project 'foo'Change #1 created and merged against fooURLs created and archived all around the place, including Jiras and CIs, pointing to fooT-1: Rename project 'foo' to 'bar'Change #1 needs to be updated in ReviewDb as all the 'foo' needs to become 'bar'URLs in Gerrit pointing to 'foo' need to be redirected to 'bar'. Existing URLs will still work and will get a 302.T-2: Create a new project 'foo'Now ... what shall we do with 'foo'? Is that the "OLD" name to be redirected? or is the "NEW" project called 'foo'?--- * ---At the end of the day Shawn told me: can you explain to me the difference between rename project and create a new project with a new name and all the content of the old project and make the old project read-only and invisible?
Luca.
On 6 Mar 2018, at 20:52, Hugo Arès <hugo...@ericsson.com> wrote:
Currently, no.
As a workaround, you can always use the importer plugin and copy the project then delete
it with delete-project plugin. We are currently doing that but this is far from ideal, it takes a
very long time to "rename" projects when they have a lot of changes. Users keep working
on the source repo while copy is happening, you need to resume copy...and so on.
For this reason, we started to implement a rename-project plugin. So far, we have a
working proof of concept that renames projects which do not have children. The plugin is
based on 2.14.
I was planing to open source it eventually when we have a bit more done but maybe I
can open source it sooner if there is interest.
I checked the empty project on gerrit-review and it's owned by plugins-rename-project
group. Is there someone (Edwin?) who belongs to that group who could add me as a
member?
Hugo
On Tuesday, March 6, 2018 at 3:01:07 PM UTC-5, thomasmu...@yahoo.com wrote:Hi, is there a supported way to rename projects in gerrit?I see there is a repo for this but no code in it https://gerrit.googlesource.com/plugins/rename-project/--
--
To unsubscribe, email repo-disc...@googlegroups.com
Let me revive this thread about rename plugin :)
On Tuesday, March 6, 2018 at 6:19:51 PM UTC-5, lucamilanesio wrote:We had implemented in the past a "rename project" plugin and presented to Shawn ... but his objection was: how do you manage the situation where the same name is then reused with a new project?The problem is the following:T-0: Create project 'foo'Change #1 created and merged against fooURLs created and archived all around the place, including Jiras and CIs, pointing to fooT-1: Rename project 'foo' to 'bar'Change #1 needs to be updated in ReviewDb as all the 'foo' needs to become 'bar'URLs in Gerrit pointing to 'foo' need to be redirected to 'bar'. Existing URLs will still work and will get a 302.T-2: Create a new project 'foo'Now ... what shall we do with 'foo'? Is that the "OLD" name to be redirected? or is the "NEW" project called 'foo'?--- * ---At the end of the day Shawn told me: can you explain to me the difference between rename project and create a new project with a new name and all the content of the old project and make the old project read-only and invisible?
The difference is if you do that, you do not have the changes in the new project, yes they are still in the old project but this is not good enough.
Now, for the changes URL redirection issue. We are still using 2.14, the URLs do not contain the project name so this is not an issue yet. I know I will have to find a solution for 2.15 and up but the question is we do have a working rename plugin for 2.14 so can I use the plugins/rename-project repo to push this to the open source?`
On 8 Aug 2018, at 06:08, Hugo Arès <hug...@gmail.com> wrote:Let me revive this thread about rename plugin :)
On Tuesday, March 6, 2018 at 6:19:51 PM UTC-5, lucamilanesio wrote:We had implemented in the past a "rename project" plugin and presented to Shawn ... but his objection was: how do you manage the situation where the same name is then reused with a new project?The problem is the following:T-0: Create project 'foo'Change #1 created and merged against fooURLs created and archived all around the place, including Jiras and CIs, pointing to fooT-1: Rename project 'foo' to 'bar'Change #1 needs to be updated in ReviewDb as all the 'foo' needs to become 'bar'URLs in Gerrit pointing to 'foo' need to be redirected to 'bar'. Existing URLs will still work and will get a 302.T-2: Create a new project 'foo'Now ... what shall we do with 'foo'? Is that the "OLD" name to be redirected? or is the "NEW" project called 'foo'?--- * ---At the end of the day Shawn told me: can you explain to me the difference between rename project and create a new project with a new name and all the content of the old project and make the old project read-only and invisible?
The difference is if you do that, you do not have the changes in the new project, yes they are still in the old project but this is not good enough.
Now, for the changes URL redirection issue. We are still using 2.14, the URLs do not contain the project name so this is not an issue yet.
I know I will have to find a solution for 2.15
and up but the question is we do have a working rename plugin for 2.14 so can I use the plugins/rename-project repo to push this to the open source?
To unsubscribe, email repo-discuss...@googlegroups.com
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
Starting from Gerrit 2.15, the rename should be a lot easier because there is no reference to changes on ReviewDb and you simply rename the repo on the filesystem and reindex
You mean for the "delete repository" scenario? That should work as well.One thing I forgot to mention is the cache cleanup.The full sequence with Gerrit 2.15 is:- rename (or remove) the repository- flush caches (projects, project_list)- reindex... and it works like a charm :-)*LOVE* NoteDb ! A very good reason for upgrading right now to Gerrit 2.15.We got so much latency reduction on GerritHub.io since we migrated to NoteDb.Luca.
--