hgkw/pretxnkw.py
branchextension
changeset 39 14038784f986
parent 37 3dc31476c148
child 40 38ee735886d2
equal deleted inserted replaced
38:6a830bed4af1 39:14038784f986
     2 from mercurial import cmdutil, commands, util
     2 from mercurial import cmdutil, commands, util
     3 import os.path, re, sys
     3 import os.path, re, sys
     4 
     4 
     5 def pretxnkw(ui, repo, hooktype, **args):
     5 def pretxnkw(ui, repo, hooktype, **args):
     6     '''Collects candidates for keyword expansion on commit
     6     '''Collects candidates for keyword expansion on commit
     7     and passes them to kwexpander.'''
     7     and expands keywords in working dir.
       
     8     NOTE: for use in combination with hgext.keyword!'''
     8 
     9 
     9     if hooktype != 'pretxncommit':
    10     if hooktype != 'pretxncommit':
    10         # bail out with error
    11         # bail out with error
    11         return True
    12         return True
    12 
    13