Batch update project.config on group renames

When a group is renamed through the web UI, each project.config
(and corresponding groups file) is updated with the new name if
there is a permission rule referencing the group.  This ensures
authorship of the relevant modification is charged back to the
user that modified the group name.

Change-Id: Ic44c46553b34548e792269e6ce835ecffea42db7
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2011-01-11 16:51:37 -08:00
parent 71bebadf9f
commit 4b5191e689
4 changed files with 174 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ import com.google.gerrit.server.config.FactoryModule;
public class GitModule extends FactoryModule {
@Override
protected void configure() {
factory(RenameGroupOp.Factory.class);
factory(MetaDataUpdate.InternalFactory.class);
bind(MetaDataUpdate.Server.class);
}