hgkw/pretxnkw.py
branchupdatehook
changeset 32 b70b38b15fa4
parent 27 d00d45c7ddaf
child 37 3dc31476c148
equal deleted inserted replaced
31:28e8bd971c02 32:b70b38b15fa4
     3 import kwexpander
     3 import kwexpander
     4 from mercurial import cmdutil, commands
     4 from mercurial import cmdutil, commands
     5 import sys
     5 import sys
     6 
     6 
     7 def pretxnkw(ui, repo, hooktype, **args):
     7 def pretxnkw(ui, repo, hooktype, **args):
     8     '''Important: returns False on success, True on failure.'''
     8     '''Collects candidates for keyword expansion on commit
       
     9     and passes them to kwexpander.'''
     9 
    10 
    10     if hooktype != 'pretxncommit':
    11     if hooktype != 'pretxncommit':
    11         # bail out with error
    12         # bail out with error
    12         return True
    13         return True
    13 
    14