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

Online ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • 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.

Online ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • 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
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
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
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.

Online ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • 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

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Read-only Git, SVN Repo for Code::Blocks
« Reply #63 on: February 27, 2015, 11:14:22 am »
@biplab
Your site is down???
CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Online ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • 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

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Read-only Git, SVN Repo for Code::Blocks
« Reply #65 on: February 27, 2015, 02:49:37 pm »
CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline mageia

  • Multiple posting newcomer
  • *
  • Posts: 16
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?

Online ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • 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.

Online ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • 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?