hgkw/keyword.py
branchstable
changeset 550 8533c85fe57d
parent 549 9084fb1593e6
child 552 baee5f7bfd32
equal deleted inserted replaced
549:9084fb1593e6 550:8533c85fe57d
   126 
   126 
   127     def __init__(self, ui, repo):
   127     def __init__(self, ui, repo):
   128         self.ui = ui
   128         self.ui = ui
   129         self.repo = repo
   129         self.repo = repo
   130         self.matcher = match.match(repo.root, '', [],
   130         self.matcher = match.match(repo.root, '', [],
   131                                    kwtools['inc'], kwtools['exc'], 'glob')
   131                                    kwtools['inc'], kwtools['exc'])
   132         self.restrict = kwtools['hgcmd'] in restricted.split()
   132         self.restrict = kwtools['hgcmd'] in restricted.split()
   133 
   133 
   134         kwmaps = self.ui.configitems('keywordmaps')
   134         kwmaps = self.ui.configitems('keywordmaps')
   135         if kwmaps: # override default templates
   135         if kwmaps: # override default templates
   136             kwmaps = [(k, templater.parsestring(v, False))
   136             kwmaps = [(k, templater.parsestring(v, False))