##// END OF EJS Templates
bzr completer now gets commands from 'bzr help commands' (includes all commands provided by exensions also)
vivainio2 -
Show More
@@ -211,15 +211,10 b' def hg_completer(self,event):'
211 211
212 212
213 213
214 bzr_commands = """
215 add annotate bind branch break-lock bundle-revisions cat check
216 checkout commit conflicts deleted diff export gannotate gbranch
217 gcommit gdiff help ignore ignored info init init-repository inventory
218 log merge missing mkdir mv nick pull push reconcile register-branch
219 remerge remove renames resolve revert revno root serve sign-my-commits
220 status testament unbind uncommit unknowns update upgrade version
221 version-info visualise whoami
222 """
214 def bzr_commands():
215 out = os.popen('bzr help commands')
216 return [l.split()[0] for l in out]
217
223 218
224 219 def bzr_completer(self,event):
225 220 """ Completer for bazaar commands """
@@ -232,7 +227,7 b' def bzr_completer(self,event):'
232 227 param = cmd_param[-1]
233 228 output_file = (param == '--output=')
234 229 if cmd == 'help':
235 return bzr_commands.split()
230 return bzr_commands()
236 231 elif cmd in ['bundle-revisions','conflicts',
237 232 'deleted','nick','register-branch',
238 233 'serve','unbind','upgrade','version',
@@ -242,7 +237,7 b' def bzr_completer(self,event):'
242 237 # the rest are probably file names
243 238 return ip.IP.Completer.file_matches(event.symbol)
244 239
245 return bzr_commands.split()
240 return bzr_commands()
246 241
247 242
248 243 def shlex_split(x):
General Comments 0
You need to be logged in to leave comments. Login now