Version 2 (modified by daxim, 4 years ago) (diff)

change ryan52

I roughly followed <>. I document my steps so they are reproducable by anyone. The attached result is a best-practices conversion up to r10072.

Instead of SAMV's branch, I installed the most recent git release 1.6.6 which incorporates his last changes to git-svn from December 2009. First, our AUTHORS file:

    adamk = Adam Kennedy <adamk《@》>
    amire80 = Amir E. Aharoni - אמיר א. אהרוני <amir.aharoni《@》>
    ash = Andrew Shitov <andy《@》>
    azawawi = أحمد محمد زواوي - Ahmad M. Zawawi <ahmad.zawawi《@》>
    BlueT = BlueT - Matthew Lien - 練喆明 <bluet《@》>
    bricas = Brian Cassidy <bricas《@》>
    brunov = Bruno Vecchi <brunov《@》>
    ChrisDolan = Chris Dolan <cdolan《@》>
    claudio = Claudio Ramirez <padre.claudio《@》>
    CSJewell = Curtis Jewell <csjewell《@》>
    code4pay = UNKNOWN <code4pay《@》example.invalid>
    dam = UNKNOWN <dam《@》example.invalid>
    daxim = Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 <daxim《@》>
    ddn123456 = Dirk De Nijs <ddn123456《@》>
    fayland = Fayland 林 <fayland《@》>
    gabrielmad = Gabriel Vieira <gabriel.vieira《@》>
    garu = Breno G. de Oliveira <garu《@》>
    getty = UNKNOWN <getty《@》example.invalid>
    gyu = György Pásztor <pasztor《@》>
    hashbangperl = Aaron Trevena <teejay《@》>
    hjansen = Heiko Jansen <heiko_jansen《@》>
    holli = UNKNOWN <holli《@》example.invalid>
    ishigaki = Kenichi Ishigaki - 石垣憲一 <ishigaki《@》>
    jquelin = Jérôme Quelin <jquelin《@》>
    jurre = UNKNOWN <jurre《@》example.invalid>
    kaare = Kaare Rasmussen <kaare《@》>
    keedi = Keedi Kim - 김도형 <keedi《@》>
    KJETIL = Kjetil Skotheim <kjetil.skotheim《@》>
    mgrimes = Mark Grimes <mgrimes《@》>
    missingthepoint = UNKNOWN <missingthepoint《@》example.invalid>
    mmaslano = Marcela Mašláňová <mmaslano《@》>
    MoC = UNKNOWN <MoC《@》example.invalid>
    mohsen = Mohsen Basirat <mbas《@》>
    offer.kaye = Offer Kaye <offer.kaye《@》>
    PacoLinux = Paco Alguacil <paco.linux《@》>
    patspam = Patrick Donelan <pdonelan《@》>
    pmurias = Paweł Murias <pawelmurias《@》>
    pshangov = Peter Shangov <shangov《@》>
    Robert = UNKNOWN <Robert《@》example.invalid>
    ryan52 = Ryan Niebur <ryanryan52《@》>
    sblandin = Simone Blandino <simone.blandino《@》>
    Sewi = Sebastian Willing <sewi《@》>
    sharifulin = Anatoly Sharifulin <sharifulin《@》>
    shlomif = Shlomi Fish - שלומי פיש <shlomif《@》>
    submersible_toaster = Andrew Bramble <bramble《@》>
    SvenDowideit = Sven Dowideit <SvenDowideit《@》>
    szabgab = Gábor Szabó - גאבור סבו <szabgab《@》>
    therek = Cezary Morga <cm《@》>
    tsee = Steffen Müller <smueller《@》>
    waxhead = Peter Lavender <peter.lavender《@》>
    zipf = Enrique Nell <perl_nell《@》>

Note the anti-spam measure, please s{《@》}{@} before deploying. There are some UNKNOWN, fill them in if you can. The email address is used as part of the committer identity. Ideally, this is the dependable address you will be always using to identify yourself in the context of GitHub? and Ohloh, other Git repositories etc.

Author identities can still be fixed at any time *before* the repo goes live, so don't worry about needing to clone repeatedly to get this right. <>

First step was

    git svn clone --prefix=svn/ --stdlayout --authors-file=AUTHORS

Note the --prefix option, NUFFIN's tools will require this. I do not know the way to safely rename remote SVN branches in an existing git-svn checkout, so I cloned again from scratch. Took me two days.

Second step was

    git svn-abandon-fix-refs

Confirmed with git branch -a and git tags that indeed we got proper git branches and tags now.

I skipped grafting (not necessary because of the modern git-svn version) and rebasing commits to clean up history (there are far too many "oops" commits).

Last step was

    git svn-abandon-cleanup

I did the usual housekeeping to shrink the repo size afterwards, deleted the working copy to save further space and then attached it here.

The next steps to take care of after downloading and unpacking are:

  1. Restore the working copy.
  2. Delete branches that are not needed anymore, see git branch man page.
  3. Split the single repo into several.
    1. For each subdirectory name, make a real deepcopy of the repo directory (copy --pr or equivalent); do not use git clone --no-hardlinks as that screws up the remote branch names.
    2. See the git filter-branch man page, section Examples, about --subdirectory-filter.
  4. Then clean up each newly split out repo: <>
  5. Push each to GitHub? with --all and --tags, again see NUFFINs blog near the end.

I can do steps 1 to 4, too, if you tell me what can be deleted in step 2.