2011年9月26日 星期一

Rebuilding git-svn metadata

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 ...
r1 = b55058aa44bb117c6c1c7e5f73ffd2153fe5cbed
r2 = be1b2adc46c2d24919bb5670b8eb8f1e4db1ba73
(................)
r2976 = 95e59b550d6fe29d26f5056ebaf1b1d42fc387b7
r2977 = c65e902e8e9e1398094142d8fc7800ed72e3104a
Done 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.
commit c65e902e8e9e1398094142d8fc7800ed72e3104a
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
If the SVN URL is different, you will get the following:
Rebuilding .git/svn/refs/remotes/git-svn/.rev_map.c27b2ed6-37b1-4487-878e-468635907f87 ...
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!
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
git-svn-id: svn://localhost/xxx/trunk@2977 c27b2ed6-37b1-4487-878e-468635907f87
to
git-svn-id: svn://192.168.1.1/xxx/trunk@2977 c27b2ed6-37b1-4487-878e-468635907f87
And 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

沒有留言: