equal
deleted
inserted
replaced
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 |