[cfe-dev] [LLVMdev] GIT mirroring

Tobias Grosser grosser at fim.uni-passau.de
Tue Feb 1 17:40:43 PST 2011


On 02/01/2011 08:19 PM, Peter Collingbourne wrote:
> On Wed, Feb 02, 2011 at 09:42:58AM +0900, NAKAMURA Takumi wrote:
>> To rebuild, it would be enough to remove
>> .git/svn/refs/remotes/git-svn/.rev_map.*
>>
>> My usual way to resync;
>>
>> $ git fetch llvm.org (is remote name)
>>
>> $ git update-ref refs/remotes/git-svn llvm.org/master
>>
>> $ git svn fetch
>> Partial-rebuilding
>> .git/svn/refs/remotes/git-svn/.rev_map.91177308-0d34-0410-b5e6-96231b3b80d8
>> ...
>> Currently at 124651 = 071d3af0de273b1079d79f7f979264f28d567373
>> r124653 = cde5a400dbc9655eddf0f383585d3cf67c11c539
>>   ...
>> r124704 = e349d2c61256f11180b7112ab592b4ae700f3dcf
>> Done rebuilding
>> .git/svn/refs/remotes/git-svn/.rev_map.91177308-0d34-0410-b5e6-96231b3b80d8
>
> I have a small script (attached) in my $PATH so I can just do:

And I just changed

.git/config such that both fetch strings point to origin/master.

-----
[svn-remote "svn"]
   url = https://grosser@llvm.org/svn/llvm-project/llvm/trunk
   fetch = :refs/remotes/origin/master
[remote "origin"]
   url = http://llvm.org/git/llvm.git
   fetch = +refs/heads/*:refs/remotes/origin/*
-----

A simple 'git remote update' updates now origin/master. As soon as you 
either use 'git svn fetch' or 'git svn dcommit' the svn meta info is 
automatically updated.

Cheers
Tobi


>
> $ git svnmu llvm
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list