Show More
@@ -211,15 +211,10 b' def hg_completer(self,event):' | |||||
211 |
|
211 | |||
212 |
|
212 | |||
213 |
|
213 | |||
214 |
bzr_commands |
|
214 | def bzr_commands(): | |
215 | add annotate bind branch break-lock bundle-revisions cat check |
|
215 | out = os.popen('bzr help commands') | |
216 | checkout commit conflicts deleted diff export gannotate gbranch |
|
216 | return [l.split()[0] for l in out] | |
217 | gcommit gdiff help ignore ignored info init init-repository inventory |
|
217 | ||
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 | """ |
|
|||
223 |
|
218 | |||
224 | def bzr_completer(self,event): |
|
219 | def bzr_completer(self,event): | |
225 | """ Completer for bazaar commands """ |
|
220 | """ Completer for bazaar commands """ | |
@@ -232,7 +227,7 b' def bzr_completer(self,event):' | |||||
232 | param = cmd_param[-1] |
|
227 | param = cmd_param[-1] | |
233 | output_file = (param == '--output=') |
|
228 | output_file = (param == '--output=') | |
234 | if cmd == 'help': |
|
229 | if cmd == 'help': | |
235 |
return bzr_commands |
|
230 | return bzr_commands() | |
236 | elif cmd in ['bundle-revisions','conflicts', |
|
231 | elif cmd in ['bundle-revisions','conflicts', | |
237 | 'deleted','nick','register-branch', |
|
232 | 'deleted','nick','register-branch', | |
238 | 'serve','unbind','upgrade','version', |
|
233 | 'serve','unbind','upgrade','version', | |
@@ -242,7 +237,7 b' def bzr_completer(self,event):' | |||||
242 | # the rest are probably file names |
|
237 | # the rest are probably file names | |
243 | return ip.IP.Completer.file_matches(event.symbol) |
|
238 | return ip.IP.Completer.file_matches(event.symbol) | |
244 |
|
239 | |||
245 |
return bzr_commands |
|
240 | return bzr_commands() | |
246 |
|
241 | |||
247 |
|
242 | |||
248 | def shlex_split(x): |
|
243 | def shlex_split(x): |
General Comments 0
You need to be logged in to leave comments.
Login now