hgkw/kwexpander.py
branchupdatehook
changeset 32 b70b38b15fa4
parent 31 28e8bd971c02
child 35 a730c9d4ec05
equal deleted inserted replaced
31:28e8bd971c02 32:b70b38b15fa4
     3 from mercurial.i18n import _
     3 from mercurial.i18n import _
     4 from mercurial import util
     4 from mercurial import util
     5 import re
     5 import re
     6 
     6 
     7 def expandkw(ui, repo, rev, cid, candidates, update=False):
     7 def expandkw(ui, repo, rev, cid, candidates, update=False):
     8     '''Important: returns False on success, True on failure.'''
     8     '''Expands logged <Dollar>Hg<Dollar> in working directory.'''
     9 
     9 
    10     # name of keyword encode filter:
    10     # name of keyword encode filter:
    11     kwencodefilter = 'hgkwencode'
    11     kwencodefilter = 'hgkwencode'
    12 
    12 
    13     # update only needs string search for encoded keyword
    13     # update only needs string search for encoded keyword