SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1
Topic Github sources 3367 Views

Github sources

27 December 2011 at 10:34pm

hello,

do you plan to add sources to github too? As im using git submodules, i need to add your sources on my personal git server and point to this server all silvercart modules in all my installations.

I think, it should be good practice to commit to bitbucket and github together. It will be good service for many SS developers ;)

Best regards

Pali

Re: Github sources

28 December 2011 at 9:52am

Hi Pali,

you are right, it would be great to support both github and bitbucket. We already discussed this workflow in our team.

I think your wish will be granted very soon :-)

Cheers
Ramon

Re: Github sources

28 December 2011 at 11:16am

Hello Pali,

I evaluated Github half a year ago and it wasn't the right tool for us. On our project we always for with a main repo and all modules are subrepos. This saves us a lot of time when it comes to syncing fixes and making updates. This is only possible with Mercurial and we will not switch our versioning system.
We already tried to work with Github and Mercurial simultaneously but unfortunately those two systems are not compatible. There is a git module for mercurial but it has severe bugs.

Re: Github sources

28 December 2011 at 11:26am

Hello Roland,

im pretty sure, that you don't need to switch versioning system for your projects if mercurial is your best. I just think, that it should be great if you pull major changes to github time to time...

anyway - im using git submodules for all my installations, but syncing is not automatical there - how about mercurial, how does it work, pls.?

Pali

Re: Github sources

28 December 2011 at 12:26pm Last edited: 28 December 2011 12:28pm

Hi there,

now it is quite confusing because of Rolands post.

The long version of the story is: we won't switch to Git, because it does not work for us. In Mercurial we have subrepos and the mainrepo is aware of them. We can update and sync the subrepos each for is own and even push changes back into the corresponding sub repo master. It works like a charm for us.

But we will - as suggested - at least publish tagged branches to github to make life bit easier for the other developers working with git.

So there most likely will not be a complete commit history on github because of the incompatibilities Roland mentioned, but at least the tagged codebase should accessible via github.

I am pretty sure Sebastian can write a neat script that does the trick.

Cheers
Ramon

Re: Github sources

28 December 2011 at 1:03pm

Hi Ramon,

i think, this should be enought. If anybody needs full commit history, he can check bitbucket...

anyway - i woud like to know, what is the main difference between mercurial's subrepos and git's submodules?

there are few articles on the net, it looks like mercurial subrepos are more practical. But in theory both should do same thing only with one difference - with git's submodules you will be in trouble more times ;)

last Q: how do you add external (git) modules to your projects as subrepo?

pali

Re: Github sources

2 January 2012 at 9:13am

Hello Pali,

regarding your last question: in our projects we don't use git subrepos. The external git based modules that we use get checked out as export without the repository information since we don't want a moving external code basis for customer projects.
We update those manually in longer time intervals so this problem didn't occur for us so far.
Since Mercurial has modules for managing git it could be possible to integrate git subrepos into a mercurial main repo, but as Roland wrote there are quite some bugs so we didn't invest more time in that.

All the best,
Sascha