Skip to content

Instantly share code, notes, and snippets.

@chungy
Created February 5, 2014 06:56
Show Gist options
  • Save chungy/8818548 to your computer and use it in GitHub Desktop.
Save chungy/8818548 to your computer and use it in GitHub Desktop.

This repository is purely a staging one for converting Eternity from Subversion to Git. As the process is refined, force-pushes may happen frequently. Do not depend on it having stable references.

Authors

The author mapping file for this repository is still yet incomplete, the version currently used was:

DavidPH = David Hill <[email protected]> America/New_York
joe = Joe Kennedy <joe>
julian = Julian Aubourg <[email protected]> CET
kate = Kate Stone <[email protected]> America/New_York
ladna = Charles Gunyon <[email protected]>
printz = Ioan Chera <[email protected]> Europe/Bucharest
quasar = James Haley <[email protected]> America/Chicago
som = Stephen McGranahan <[email protected]> America/Chicago

The only thing really missing is an email address for Joe.

Also would-be-nice are timezones for Joe and Ladna.

Lift script

This repository was converted using reposurgeon, the following commands are ones that were used and can be entered in automatically:

# Conversion script made with reposurgeon 3.0
version 3.0

# Delete some useless generated tags
tag emptycommit-3 delete
tag emptycommit-1340 delete
tag emptycommit-1499 delete
tag emptycommit-2409 delete
tag emptycommit-2735 delete
tag tipdelete-aeon-branch delete

# Cleanup the "Moved repeatedly" series of commits
coalesce

# Delete the first commit: contains only a .gitignore creation event
:2 delete

# Fix tags by pushing them back to the master branch
22116 squash --pushback --tagback
19577 squash --pushback --tagback
17121 squash --pushback --tagback
16136 squash --pushback --tagback
13601 squash --pushback --tagback
10560 squash --pushback --tagback
10310 squash --pushback --tagback
10298 squash --pushback --tagback
9322 squash --pushback --tagback
9299 squash --pushback --tagback
8081 squash --pushback --tagback
5664 squash --pushback --tagback

# Delete a couple mistaken branch commits
:20832..:20833 delete

# Fix an old screwup
:14164 unmerge

Manual editing of the commit references was done using references edit and the reposurgeon-mode for Emacs.

In order to perform dos2unix on all the files in the entire revision history, the following lines were used:

all2dos() { find . -exec dos2unix -q '{}' \; ; }
export -f all2dos
git filter-branch -f --prune-empty --tree-filter all2dos --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment