5 ms·
Can you clone, do maintenance, push to new repo with `—-mirror‘, then swap repos to get that benefit?
by prpl 6y ago
Can you clone, do maintenance, push to new repo with `—-mirror‘, then swap repos to get that benefit?
- mikepurvis 6y agoYou'd need to have some automated process cherry-picking changes across if you did it this way. To be honest, I think a flag day is the easiest way to handle this, but it does require tooling support to a) lock the repo out while it's going on, and b) prevent users from pushing back in all the removed content immediately afterward.
- masklinn 6y agoThere’s no real removed content to an aggressive repack. The dangling stuff is GC’d but for the most part it’s just storing everything in packs wit more expensive options than the normal “online” maintenance: a very aggressive full repack can take an hour or two in a really big repo.
- mikepurvis 6y agoAh cool, thanks for the clarification; I had not realised that repacking was distinct from rebasing/filtering.