Buckminster code-base has moved to Git [message #690332] |
Wed, 29 June 2011 11:44 |
|
Hi,
Being on vacation is funny. Suddenly you are confined to a laptop and
using your cellphone as an internet gateway. Materializing a workspace
with the Buckminster code base in that environment is challenging when
using SVN. This gave me the final incentive to go ahead and resolve:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=341718
"Move Buckminster code base to Git"
The transition is now complete and I was just able to materialize a
brand new workspace (still using my cellphone) in less than 3 minutes.
Bye bye SVN...
- thomas
PS.
This means that we're switching qualifier generation on all Buckminster
features and bundles since we no longer can rely on the SVN revision
number. Git commit-id's doesn't come in lexical order so we will
henceforth use timestamps.
|
|
|
|
|
Re: [buckminster-dev] Buckminster code-base has moved to Git [message #690601 is a reply to message #690511] |
Wed, 29 June 2011 19:50 |
|
On 2011-06-29 17:56, Ian Bull wrote:
> "Being on vacation" and "materializing a workspace" should not be in the
> same paragraph ;).
>
I agree. It really shouldn't but I find the thought that I do some
things just for fun comforting. Nobody could claim that this wasn't
according what was planned for the next sprint :-)
> Good work Thomas!
>
> Btw, are you maintaining stable qualifiers? That is, if a bundle doesn't
> change from build to build are you ensuring that the qualifiers remain
> the same? I'm trying to get a sense of how people are doing this with git.
>
Buckminster has a qualifier generator that finds the latest commit that
affects a given subtree (in this case a project). We use the timestamp
of such commits directly for plug-in qualifiers. For features, we
calculate the last timestamp for all included features, plug-ins, and
the feature project itself and use that. There are some corner cases
when this approach isn't fail proof but the way we use it, it works
perfectly. Our qualifiers will remain the same as long as our code is
unchanged.
- thomas
|
|
|
|
Re: [buckminster-dev] Buckminster code-base has moved to Git [message #691293 is a reply to message #691165] |
Fri, 01 July 2011 07:21 |
|
On 2011-06-30 23:15, Ian Bull wrote:
>
> Btw, are you maintaining stable qualifiers? That is, if a bundle doesn't
> change from build to build are you ensuring that the qualifiers remain
> the same? I'm trying to get a sense of how people are doing this with git.
>
> Buckminster has a qualifier generator that finds the latest commit that affects a given subtree (in this case a
> project). We use the timestamp of such commits directly for plug-in qualifiers. For features, we calculate the last
> timestamp for all included features, plug-ins, and the feature project itself and use that. There are some corner
> cases when this approach isn't fail proof but the way we use it, it works perfectly. Our qualifiers will remain the
> same as long as our code is unchanged.
>
> And this works with Git?
>
Yes, indeed.
> I wonder if this work could be reused in Eclipse Releng Tool [1].
>
The relevant code can be viewed here:
http://git.eclipse.org/c/buckminster/buckminster.git/tree/org.eclipse.buckminster.git/src/org/eclipse/buckminster/git/internal/GitReaderType.java
Take a look at the method getLastModification() at line 103
Regards,
Thomas Hallgren
|
|
|
Powered by
FUDForum. Page generated in 0.03467 seconds