Skip to content

Category Archives: mercurial

simple twitter mercurial hook

This is a really simple mercurial 1.2 hook for posting incoming changesets to twitter. It requires python-twitter. File: hgtwitter.py ”’ [extensions] hgext.hgtwitter=   [hooks] incoming.notify = python:hgext.hgtwitter.hook   [twitter] username = twitter_username password = twitter_password ”’ from mercurial import cmdutil, templater import twitter   tweet_template = ”’ |{root|basename}:{rev}| {desc|strip} ”’.strip()   def hook(ui, repo, hooktype, [...]