Getting a human readable revision Id via the python api
Stefano Franz
roastario at gmail.com
Tue Jul 24 12:18:20 CDT 2012
I've written a pretxnchangegroup hook which is used to check that JIRA
tickets are mentioned in the commit messages, and that these are in
the correct state to allow commits the the Stable Branch.
Long story, there is a requirement that on commit, the ticket is
updated to include a reference to the changeset that was the tip of
the push. I can't seem to extract a human readable version of this, as
commit_coordinate = str(repo['tip'].node())
sets commit_coordinate to a garbled binary string. Am I missing
something simple? Or is it the functionality thats missing?
Thanks,
Stefano
More information about the Mercurial-devel
mailing list