166 revset.symbols[name] = symbol |
166 revset.symbols[name] = symbol |
167 for name, kw in self._templatekws: |
167 for name, kw in self._templatekws: |
168 templatekw.keywords[name] = kw |
168 templatekw.keywords[name] = kw |
169 for ext, command, wrapper, opts in self._extcommandwrappers: |
169 for ext, command, wrapper, opts in self._extcommandwrappers: |
170 if ext not in knownexts: |
170 if ext not in knownexts: |
171 e = extensions.find(ext) |
171 try: |
172 if e is None: |
172 e = extensions.find(ext) |
173 raise util.Abort('extension %s not found' % ext) |
173 except KeyError: |
|
174 # Extension isn't enabled, so don't bother trying to wrap |
|
175 # it. |
|
176 continue |
174 knownexts[ext] = e.cmdtable |
177 knownexts[ext] = e.cmdtable |
175 entry = extensions.wrapcommand(knownexts[ext], command, wrapper) |
178 entry = extensions.wrapcommand(knownexts[ext], command, wrapper) |
176 if opts: |
179 if opts: |
177 for short, long, val, msg in opts: |
180 for short, long, val, msg in opts: |
178 entry[1].append((short, long, val, msg)) |
181 entry[1].append((short, long, val, msg)) |