On 01/27/2015 10:58 AM, kilon alios wrote:
I was wondering how possible it is to check a github repo for new commits and compare it with the existing code to based on the Baseline loading of a Github repo to Pharo. Is it possible ?
Yes, I think there are a couple of different ways to skin that cat. The logic in MCGitBasedNetworkRepository class>>projectDirectoryFrom:version: could be picked apart to determine if a new download is available, but it relies on downloading and partially unpacking the zip file for the given target, which is pretty heavy weight ...

For notifications I would be inclined to look at the github/bitbucket web api and see what can be done. Someday I plan to look into this, but haven't done the due diligence yet.

I want to make an updater for my project that will pop up a dialog to alert the user for new updates in my Github repo.

Does a Baseline have access to git commits and their time/date signature ?

The registry records the `repositoryVersionString` of the loaded baseline which is the SHA of the commit for a filetree/git repo. For the MCGitBasedNetworkRepository, the `repositoryVersionString` is based on the unique identifier for the download, which is not always a commit SHA ... for tags, I think that the identifier is the SHA of the tag ...

Timestamp is not always useful since it is the relationship of commits on a branch that is important for comparison purposes ...

At then end of the day, though, I think that these issues can be addressed a nice little updater tool can be built ... I will be interested to see what you've done, if you get there first:)


By the way Dale forgot to reply previously that I am definetly checking out git tags as you suggested.

Cool,

Dale

Reply via email to