git svn init svn://localhost/xxxx/trunk
git update-ref refs/remotes/git-svn master
git svn fetch
Rebuilding .git/svn/refs/remotes/git-svn/.rev_map.c27b2ed6-37b1-4487-878e-468635907f87 ...The SVN URL string must be exactly the same as the one recorded in the log.
r1 = b55058aa44bb117c6c1c7e5f73ffd2153fe5cbed
r2 = be1b2adc46c2d24919bb5670b8eb8f1e4db1ba73
(................)
r2976 = 95e59b550d6fe29d26f5056ebaf1b1d42fc387b7
r2977 = c65e902e8e9e1398094142d8fc7800ed72e3104a
Done rebuilding .git/svn/refs/remotes/git-svn/.rev_map.c27b2ed6-37b1-4487-878e-468635907f87
commit c65e902e8e9e1398094142d8fc7800ed72e3104aIf the SVN URL is different, you will get the following:
Author: X <X@c27b2ed6-37b1-4487-878e-468635907f87>
Date: Thu Sep 22 04:08:39 2011 +0000
mesg...
git-svn-id: svn://localhost/xxx/trunk@2977 c27b2ed6-37b1-4487-878e-468635907f87
Rebuilding .git/svn/refs/remotes/git-svn/.rev_map.c27b2ed6-37b1-4487-878e-468635907f87 ...If you want to change the SVN URL, e.g. "svn://localhost/xxx/trunk" to "svn://192.168.1.1/xxxx/trunk", you can do "git commit --amend" to alter the last commit's git-svn-id from
Done rebuilding .git/svn/refs/remotes/git-svn/.rev_map.c27b2ed6-37b1-4487-878e-468635907f87
(.......................)
Last fetched revision of refs/remotes/git-svn was r2977, but we are about to fetch: r1!
git-svn-id: svn://localhost/xxx/trunk@2977 c27b2ed6-37b1-4487-878e-468635907f87to
git-svn-id: svn://192.168.1.1/xxx/trunk@2977 c27b2ed6-37b1-4487-878e-468635907f87And set the git-svn to the new commit and run "git svn fetch"
Rebuilding git-svn metadata
http://utsl.gen.nz/talks/git-svn/intro.html#howto-track-rebuildmeta
沒有留言:
張貼留言