Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Read-only Git, SVN Repo for Code::Blocks

<< < (13/14) > >>

ollydbg:

--- Quote from: jens on December 22, 2013, 03:17:04 pm ---After doing the hard-reset, but before fetching any new revisions you can try this approach:
http://theadmin.org/articles/git-svn-switch-to-a-different-a-svn-url/

I did it on my local git-svn repo, when we switched from berlios to sourceforge.

--- End quote ---
Hi, jens, many thanks, it works perfect, now I have a git repo which has those features.
1, has the whole code history
2, let me synchronize the official svn repo by "git svn rebase"
3, let me commit back to svn repo

Suggest: I think you can share the file codeblocks.git.tar.xz with all the C::B devs who want to use git, the codeblocks.git.tar.xz file don't need to updated daily, because the user can later use git svn rebase to synchronize them. For Windows user, don't remember to set the filemode = false. For my experience, the msysgit is currently recommended. (MSYS2 20131003 release in my test some times report: error: git-svn died of signal 6, I didn't test the newer MSYS2).

ollydbg:
Some further information about the git commit SHA value and commit log message.
I just did a SVN url change(see: Re: Read-only Git, SVN Repo for Code::Blocks), and later I did a git svn rebase.

Now, I see the SHA value are different for the new fetched svn commit.

For example, in
http://cgit.jenslody.de/codeblocks/commit/
The latest commit is:

--- Code: ---author biplab <biplab@2a5c6006-c6dd-42ca-98ab-0921f2732cef> 2013-12-21 14:59:38 (GMT)
committer biplab <biplab@2a5c6006-c6dd-42ca-98ab-0921f2732cef> 2013-12-21 14:59:38 (GMT)
commit 4358e1d0ed886f1581ed4f19863418c8b4d9fbfc (patch)
tree a011291b7dfc74843c79599c6a2c7a9638b11433
parent a8fd2cf9415f205012f5389fde815a867061924b (diff)
download codeblocks-master.tar.bz2
codeblocks-master.tar.xz
* Fixed: Typos.
git-svn-id: http://svn.code.sf.net/p/codeblocks/code/trunk@9494 2a5c6006-c6dd-42ca-98ab-0921f2732cef

--- End code ---

Now, in my local git repo, it is:

--- Code: ---Revision: bea9e5858389b5a522d67335d62a2ad065a3bd50
Author: biplab <biplab@2a5c6006-c6dd-42ca-98ab-0921f2732cef>
Date: 2013-12-21 22:59:38
Message:
* Fixed: Typos.

git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9494 2a5c6006-c6dd-42ca-98ab-0921f2732cef
----
Modified: codeblocks.spec.in
Modified: debian/changelog

--- End code ---

Look, the log messages(svn url), SHA-1 values are different.

The commit before "git svn rebase/fetch" are the same.

One guess: if jens' original git was mirrored from some url like: https://xxx@svn.code.sf.net/p/codeblocks/code where xxx is your SF id, then maybe, we can get the same commit SHA-1 value and log message. Since in my git config file, I have:

--- Code: ---url = https://ollydbg@svn.code.sf.net/p/codeblocks/code

--- End code ---
But look at the log message, it did strip the "ollydbg@" string.


ollydbg:
I add source mirror information to the wiki, see this change Developer documentation - CodeBlocks

LETARTARE:
@biplab
Your site is down???

ollydbg:

--- Quote from: LETARTARE on February 27, 2015, 11:14:22 am ---@biplab
Your site is down???

--- End quote ---
Works fine here:
http://cb.biplab.in/websvn/listing.php?repname=codeblocks
and
http://cb.biplab.in/cgit/

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version