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