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