I am implementing a custom hook in Rhodecode CI, which sends a build request to Buildbot on every push. The hook gives me the revisions commit-id, how can I extract information about the files that were changed as part of this commit.
@has_kwargs({
'commit_ids': 'list of pushed commit_ids (sha1)',})
def _push_hook(*args, **kwargs):
import mercurial # can I used this library to get this info?
some_function(commit_id) # should return files changed
Can I use mercurial
library or is there any other way to get this information programatically, using python?