CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   git svn clone of openfoam-extend (http://www.cfd-online.com/Forums/openfoam/66848-git-svn-clone-openfoam-extend.html)

Bost July 26, 2009 18:30

git svn clone of openfoam-extend
 
Hi

have any done?
git svn clone https://openfoam-extend.svn.sourcefo...penfoam-extend -T trunk -b branches -t tags

If so:
- how much time had it taken?
- would you provide me your git repo? Besides, does it work? I mean I know 'man git-svn' says:
[..]
> it is recommended that all git-svn users clone, fetch and dcommit directly from the SVN server, and avoid all git-clone/pull/merge/push operations between git repositories and branches
but according to my experiences 'git svn clone' of 1351 revisions may take several days and I believe 'git clone' would be a _way_ faster

I know there is similair post http://www.cfd-online.com/Forums/ope...tml#post206989 but it's half a year old and IMO my question is worth a new thread

Bost

olesen July 27, 2009 06:32

Quote:

Originally Posted by Bost (Post 224185)
Hi

have any done?
git svn clone https://openfoam-extend.svn.sourcefo...penfoam-extend -T trunk -b branches -t tags

If so:
- how much time had it taken?

If you don't need the full development history, you can also specify a particular revision (eg, -r 912) in the clone command and use fetch to update afterwards from there.

Bost July 27, 2009 08:39

> > have any done?
> > git svn clone https://openfoam-extend.svn.sourcefo...penfoam-extend -T trunk -b branches -t tags
> >
> > If so:
> > - how much time had it taken?
>
> If you don't need the full development history, you can also specify a particular revision (eg, -r 912) in the clone command and use fetch to update afterwards from there.

Yes I know that but that's not the solution in the long run. The OF is my hobby so I definitely don't have the time nor the mood for any sub-optimal solutions!!!

What I'm interested in has been mentioned in http://www.cfd-online.com/Forums/ope...x-1-5-dev.html (especially the posts #16, #17, #20)

Short summary:
- OF-extend is in svn repository
- OF-1.5.x in git repository
- git is superior(!) over svn (I hope there's no doubt or question about it)
- git can be used around svn or call it "at the top of svn"
The problem is:
- "OF-extend team tries to apply all patches from the git repository" but this is not easy
- applying OF-1.5.x patches on OF-extend in the git would be a lot easier but a full scale svn-to-git migration is too painful

I personally clearly recognize the advantage of git against svn and can work with git at the top of svn. The point is it takes me too much time to make my personal svn-to-git conversion, so I'm asking you: 'Can you share your OF-extend git repo if you have any? (thx)'

Bost

olesen July 27, 2009 10:56

Quote:

Originally Posted by Bost (Post 224265)
Yes I know that but that's not the solution in the long run. The OF is my hobby so I definitely don't have the time nor the mood for any sub-optimal solutions!!!
...
I personally clearly recognize the advantage of git against svn and can work with git at the top of svn. The point is it takes me too much time to make my personal svn-to-git conversion

As I mentioned, if you only started from a particular revision (eg, for the 1.5 version), it really won't take very long to fetch the 300 commits since then. In the future you can simply keep your git-svn branch up-to-date and merge against it. As far as it goes, there's nothing particularly wrong with this solution.

Since you obviously have experience working with git, you'll however recognize that the real problem is that you don't initially have any common ancestors between OpenFOAM-1.5.x and the OpenFOAM-ext version. Your very first merge will fail with thousands of conflicts that you'll have to resolve. If you ever get past that point, the rest probably isn't so bad.

Bost August 3, 2009 09:29

My full scale

git svn clone https://openfoam-extend.svn.sourcefo...penfoam-extend -T trunk -b branches -t tags

is over. I'm surprised - it took something between 6 - 8 hours. Anyone interested in cloning of my git repository?

Bost

olesen August 3, 2009 09:38

Quote:

Originally Posted by Bost (Post 225081)
Anyone interested in cloning of my git repository?

I think you should either ask the OpenFOAM-extend guys to push it to the sourceforge git repository (or let you do it), or just publish it to github (getting an account is quick and painless). From github it can be cloned/forked or whatever.

Bost August 3, 2009 09:52

Quote:

Originally Posted by olesen (Post 225084)
I think you should either ask the OpenFOAM-extend guys [..]

I see I'm on a OpenFOAM-CFD forum but I cannot find the right forum or mailing list for OpenFOAM-extend... there are they? (well hidden anyway :)

Bost

olesen August 3, 2009 10:16

Quote:

Originally Posted by Bost (Post 225085)
I see I'm on a OpenFOAM-CFD forum but I cannot find the right forum or mailing list for OpenFOAM-extend... there are they? (well hidden anyway :)

But you were already on that thread before - http://www.cfd-online.com/Forums/ope...tml#post218416 (posting #10 from Martin)

gschaider August 3, 2009 10:21

Quote:

Originally Posted by Bost (Post 225085)
I see I'm on a OpenFOAM-CFD forum but I cannot find the right forum or mailing list for OpenFOAM-extend... there are they? (well hidden anyway :)

They're hiding in plain sight I'd say ;) http://sourceforge.net/projects/openfoam-extend/

BTW: In the current structure I'd only selectively check out the parts that you need. The docu what to check out under which circumstanhces seems to have gone offline due to a software-change at sourceforge, sorry

Bost August 3, 2009 11:27

Quote:

Originally Posted by gschaider (Post 225090)
They're hiding in plain sight I'd say ;) http://sourceforge.net/projects/openfoam-extend/

Are you talking about the mailing lists:
openfoam-exend-announce
openfoam-exend-general
openfoam-exend-submit
openfoam-exend-general
openfoam-exend-combust-react-sig
?

'cause I see no activity there. Except the openfoam-exend-submit but there are only sourceforge commit digests (or how to call it) - no discussion at all! I doubt my posts are read if I post them on any of these mailing list.

Quote:

Originally Posted by gschaider (Post 225090)
The docu [..] seems to have gone offline due to a software-change at sourceforge, sorry

You see: svn = centralised repository = Single point of failure (git is distributed = non-centralised "per definition")

Bost

gschaider August 3, 2009 12:55

Quote:

Originally Posted by Bost (Post 225097)
Are you talking about the mailing lists:
openfoam-exend-announce
openfoam-exend-general
openfoam-exend-submit
openfoam-exend-general
openfoam-exend-combust-react-sig
?

'cause I see no activity there. Except the openfoam-exend-submit but there are only sourceforge commit digests (or how to call it) - no discussion at all! I doubt my posts are read if I post them on any of these mailing list.

The combust-list is quite new and the guys from that SIG have not been starting with it. The other lists are partly victims to the "only stuff that is ONLY of interest to the OF-extend, the rest goes on the MessageBoard"-policy. But they ARE read

Quote:

Originally Posted by Bost (Post 225097)
You see: svn = centralised repository = Single point of failure (git is distributed = non-centralised "per definition")

It's nice how prejudices work ("The fault must be SVN"): as Sourceforge was discontinuing the Wiki(!)-Software the docu would have been gone even if the source-control-server would have been git (or mercury, or CVS).

And there ARE advantage to centralization: there is one definitive version. "per definition" as you would say. In my opinion you get the best of both worlds if you have a central SVN-repository and you mirror the parts you're working on with a decentralized tool (git. svk ...) and push back your changes as soon as you're done.

henrik August 3, 2009 13:32

Dear Bost,

alternatively, follow the link that Bernhard just posted and after the project's name it says "by bgschaid, hakan_nilsson, hjasak, mbeaudoin". Click on any of these names, and select "Send me a message" -- This link is blue and on the right hand side.

Henrik

mbeaudoin August 3, 2009 20:16

Hello "Bost",

Thank you for your "high" interest in openfoam-extend.

May I recommend you take a look at the presentations we've made at each of the last 3 OpenFOAM Workshop held in Zagreb in 2007, Milan in 2008 and Montreal in 2009. You will find there a lot of answers to your questions.

As Henrik stated, it is quite easy to reach any of the openfoam-extend admins.

If you ever decide to contact me, please use your real name and and a real Email adress; "Bost" is a bit too "anonymous" for me.

Martin

Quote:

Originally Posted by henrik (Post 225112)
Dear Bost,

alternatively, follow the link that Bernhard just posted and after the project's name it says "by bgschaid, hakan_nilsson, hjasak, mbeaudoin". Click on any of these names, and select "Send me a message" -- This link is blue and on the right hand side.

Henrik



All times are GMT -4. The time now is 11:26.