Today I completed the git migration of the last Subversion repository we still had online at Propus.
Nothing different from what we had done for all the rest, but this was an old repository, mostly with unmaintained code, modeled after “project-as-subdirectory” style… Good old days…
Two scripts – I am sure people can find somewhere else on the Internet – are worth pasting here:
First, I detected 3 revisions committed by root user. The first two matched the creation of first two projects (AKA directories), so I mapped the three of them to the same person (who had this bad habit of logging as root). It ended up I was wrong for the third revision: it was the beginning of a new project, but by a different person. Since the authors file maps one-to-one, “root” could only be one and the person.
So, after the migration, I just use filter-branch to fix that particular commit. Trivial, but worth a gist:
Lastly, there are some projects (mapped as subdirectories in the new git repo), that we’d like to split from the “archived” do keep using or adding to them. They will become active projects again. So, we cloned the whole repo again, and used filter-branch to the rescue:
Since that was the last Subversion repository still alive, I’d like to end this post with a thanks for all the years of good service! Time to move on…
0sem comentários ainda