Mercurial > public > mercurial-scm > hg
comparison contrib/python-hook-examples.py @ 28562:2b585677220e
contrib: python-hook-examples use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 16 Mar 2016 04:13:28 +0530 |
parents | a8d13ee0ce68 |
children | 1a184b727aff |
comparison
equal
deleted
inserted
replaced
28561:330584235c22 | 28562:2b585677220e |
---|---|
1 ''' | 1 ''' |
2 Examples of useful python hooks for Mercurial. | 2 Examples of useful python hooks for Mercurial. |
3 ''' | 3 ''' |
4 from mercurial import patch, util | 4 from __future__ import absolute_import |
5 from mercurial import ( | |
6 patch, | |
7 util, | |
8 ) | |
5 | 9 |
6 def diffstat(ui, repo, **kwargs): | 10 def diffstat(ui, repo, **kwargs): |
7 '''Example usage: | 11 '''Example usage: |
8 | 12 |
9 [hooks] | 13 [hooks] |