##// END OF EJS Templates
bzr completer caches the commands (only runs bzr help commands on the first run)
Ville M. Vainio -
Show More
@@ -211,10 +211,15 b' def hg_completer(self,event):'
211 211
212 212
213 213
214 __bzr_commands = None
215
214 216 def bzr_commands():
217 global __bzr_commands
218 if __bzr_commands is not None:
219 return __bzr_commands
215 220 out = os.popen('bzr help commands')
216 return [l.split()[0] for l in out]
217
221 __bzr_commands = [l.split()[0] for l in out]
222 return __bzr_commands
218 223
219 224 def bzr_completer(self,event):
220 225 """ Completer for bazaar commands """
General Comments 0
You need to be logged in to leave comments. Login now