...
Subversion Directory | GitHub Repository | Status |
---|---|---|
fedora | github.com/fcrepo/fcrepo | |
services/diringest | github.com/fcrepo/diringest | |
services/genericsearch | github.com/fcrepo/gsearch | |
services/oaiprovider | github.com/fcrepo/oaiprovider | |
services/sipcreator | github.com/fcrepo/sipcreator | |
utilities/ | github.com/fcrepo/migration-2to3 | |
...
No Format |
---|
cp -a 3.refs-cleaned 4.recent-history cd 4.recent-history |
Remove tags and branches prior to 3.3
No Format |
---|
git tag -d `git tag|grep -v 3.[34]`
git branch -D maintenance-2.2 fcrepo-579 fcrepo-586 |
Find the id of the 3.3 tagged commit and parent:
No Format |
---|
git log --since=2009-12-18 --until=2009-12-19export lastid=`git show v3.3|grep ^commit|sed 's/...... \(.*\)$/\1/'` export parentid=`git show $lastid^|grep ^commit|sed 's/...... \(.*\)$/\1/'` |
Filter out everything prior:
No Format |
---|
export lastid=86b96dec0108af8bc160b84f24276962e0c4e2d5
export parentid=100891ba5fd0f1d3869236047867462355e9f1b1
git filter-branch --parent-filter "sed -e 's/-p $parentid//'" \
--tag-name-filter cat -- --all ^$parentid
git for-each-ref --format='%(refname)' refs/original \
| while read ref; do git update-ref -d "$ref"; done |
Re-sign the tags:
No Format |
---|
git retag v3.3 v3.3 git retag v3.3.1 v3.3.1 git retag v3.4 v3.4 git retag v3.4-RC1 v3.4-RC1 git retag v3.4.1 v3.4.1 |
Reclaim unused space:
No Format |
---|
git reflog expire --expire=0 --all
git repack -ad
git prune |
Find the new id of the 3.3 tagged commit (now the root commit of this repository):
No Format |
---|
export lastid=`git show v3.3|grep ^commit|sed 's/...... \(.*\)$/\1/'` |
5. Separate Ancient History (fcrepo-before33)
...
No Format |
---|
git tag -d `git tag|grep 3.[34]` git branch -D `git branch | grep -v master \ |grep -v maintenance-3.42.2 | grep -v fcrepo-579 \ |grep -v fcrepo-586` git reset --hard (parent of lastid)$parentid git gc --prune=now |
6. Graft Test
...
No Format |
---|
cp ../5.ancient-history/.git/objects/pack/* \ .git/objects/pack |
Create the graft:
No Format |
---|
echo $lastid $parentid > .git/info/grafts |
Copy historic tags and branches with the following content (where $lastid and $parentid are the actual values set previously):
No Format |
---|
$lastid $parentidcat ../5.ancient-history/.git/packed-refs >> .git/packed-refs |
Test it (all history, including old tags and branches, should be visible):
No Format |
---|
gitk --all |
...