branch | updatehook |
changeset 32 | b70b38b15fa4 |
parent 28 | c7f5821f3513 |
31:28e8bd971c02 | 32:b70b38b15fa4 |
---|---|
1 # $Hg$ |
1 # $Hg$ |
2 |
2 |
3 import kwexpander |
3 import kwexpander |
4 |
4 |
5 def updatekw(ui, repo, hooktype, **args): |
5 def updatekw(ui, repo, hooktype, **args): |
6 '''Important: returns False on success, True on failure.''' |
6 '''Collects candidates for keyword expansion on update |
7 and passes them to kwexpander.''' |
|
7 |
8 |
8 if hooktype != 'update': |
9 if hooktype != 'update': |
9 # bail out with error |
10 # bail out with error |
10 return True |
11 return True |
11 |
12 |