On Tue, 2006-04-11 at 17:46 -0700, Stephen Hahn wrote:
> 1. Hooks programs should share common functions whether targetted at
> Subversion or Mercurial workspaces. Issuing mail, querying a
> formatted repository file (or the MySQL database directly), and
> other typical functions need to be the same implementation for
> both types of repository.
Python has standard modules for creating email messages and sending them
over SMTP. For an example of how to use these, you can take a look at
the patchbomb extension for Mercurial. They're quite nice.
> while an ON Mercurial equivalent is spread across the prechangegroup
> hook:
You would probably need this in the pretxnchangegroup hook, if I
understand your intentions (i.e. look inside the newly landed changes to
see if they're clean).
<b
_______________________________________________
tools-discuss mailing list
[email protected]