Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [buckminster-dev] Buckminster code-base has moved to Git

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


Back to the top