Author Topic: Read-only Git, SVN Repo for Code::Blocks  (Read 45536 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5217
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Read-only Git, SVN Repo for Code::Blocks
« Reply #60 on: December 22, 2013, 03:48:54 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.
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).

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5217
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Read-only Git, SVN Repo for Code::Blocks
« Reply #61 on: December 22, 2013, 04:23:18 pm »
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: [Select]
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

Now, in my local git repo, it is:
Code: [Select]
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

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: [Select]
url = https://ollydbg@svn.code.sf.net/p/codeblocks/code
But look at the log message, it did strip the "ollydbg@" string.


If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5217
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Read-only Git, SVN Repo for Code::Blocks
« Reply #62 on: January 06, 2014, 05:04:11 am »
I add source mirror information to the wiki, see this change Developer documentation - CodeBlocks
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline LETARTARE

  • Regular
  • ***
  • Posts: 366
  • L'ami de l'homme.The friend of man.
Re: Read-only Git, SVN Repo for Code::Blocks
« Reply #63 on: February 27, 2015, 11:14:22 am »
@biplab
Your site is down???
C::B  : svn11656, wxwidgets2.8, wx3.0.3 plugins : QtPregen-2.4.3-sdk138
1-Vista Business Pack 2 32bits :  TDM-GCC- 4.9.2, TDM-GCC-5.1.0.3
2-OpenSuse-42.3-Leap 64bits :  g++-4.8.5,
=> !! The messages are translated by GOOGLE !!

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5217
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline LETARTARE

  • Regular
  • ***
  • Posts: 366
  • L'ami de l'homme.The friend of man.
Re: Read-only Git, SVN Repo for Code::Blocks
« Reply #65 on: February 27, 2015, 02:49:37 pm »
C::B  : svn11656, wxwidgets2.8, wx3.0.3 plugins : QtPregen-2.4.3-sdk138
1-Vista Business Pack 2 32bits :  TDM-GCC- 4.9.2, TDM-GCC-5.1.0.3
2-OpenSuse-42.3-Leap 64bits :  g++-4.8.5,
=> !! The messages are translated by GOOGLE !!

Offline mageia

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Read-only Git, SVN Repo for Code::Blocks
« Reply #66 on: March 13, 2015, 06:52:55 pm »
why not github,your repo always down?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5217
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Read-only Git, SVN Repo for Code::Blocks
« Reply #67 on: April 06, 2015, 03:43:14 pm »
@biplab, I just notice that your git mirror doesn't updated for about 12 days, see:
http://cb.biplab.in/cgit/codeblocks/log/
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5217
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Read-only Git, SVN Repo for Code::Blocks
« Reply #68 on: September 04, 2016, 02:12:09 am »
@biplab, your svn mirror is not working for about one months, can you have a look?
http://cb.biplab.in/cgit/codeblocks/log/
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline turbosnail

  • Single posting newcomer
  • *
  • Posts: 7
Re: Read-only Git, SVN Repo for Code::Blocks
« Reply #69 on: September 30, 2016, 09:15:07 am »
i found https://sourceforge.net/p/codeblocks/git/ref/master/
may be it was better if use this git repo for mirror?