@@ -17,16 +17,16 @@ import (
1717type Migration3 struct {}
1818
1919func (m * Migration3 ) Description () string {
20- return "Migrate bridge credentials from the global git config to a keyring "
20+ return "Make bug and identities independent from the storage by making the ID generation self-contained "
2121}
2222
2323func (m * Migration3 ) Run (repoPath string ) error {
24- oldRepo , err := beforerepo .NewGitRepo (repoPath , nil )
24+ oldRepo , err := beforerepo .NewGoGitRepo (repoPath , nil )
2525 if err != nil {
2626 return err
2727 }
2828
29- newRepo , err := afterrepo .NewGitRepo (repoPath , nil )
29+ newRepo , err := afterrepo .NewGoGitRepo (repoPath , nil )
3030 if err != nil {
3131 return err
3232 }
@@ -42,7 +42,7 @@ func (m *Migration3) migrate(oldRepo beforerepo.ClockedRepo, newRepo afterrepo.C
4242
4343 for streamedIdentity := range identities {
4444 oldIdentity := streamedIdentity .Identity
45- fmt .Printf ("identity %s:\n " , oldIdentity .Id ().Human ())
45+ fmt .Printf ("identity %s: " , oldIdentity .Id ().Human ())
4646 newIdentity , err := afteridentity .NewIdentityFull (
4747 newRepo ,
4848 oldIdentity .Name (),
@@ -64,12 +64,11 @@ func (m *Migration3) migrate(oldRepo beforerepo.ClockedRepo, newRepo afterrepo.C
6464
6565 for streamedBug := range bugs {
6666 oldBug := streamedBug .Bug
67- fmt .Printf ("bug %s:\n " , oldBug .Id ().Human ())
67+ fmt .Printf ("bug %s: " , oldBug .Id ().Human ())
6868 newBug , err := migrateBug (oldBug , migratedIdentities )
6969 if err != nil {
7070 return err
7171 }
72- fmt .Println (newBug )
7372 if err := newBug .Commit (newRepo ); err != nil {
7473 return err
7574 }
0 commit comments