lp:bzr-bash-completion/1.1

Created by Martin von Gagern and last modified
Get this branch:
bzr branch lp:bzr-bash-completion/1.1
Only Martin von Gagern can upload to this branch. If you are Martin von Gagern please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Martin von Gagern
Project:
bash completion generator for bzr
Status:
Development

Recent revisions

46. By Martin von Gagern

Allow different formats for tag completion.

The tests now use the dirstate-tags format, as does the
bzrlib.tests.test_tag module. As "bzr tags" will print a warning about a
deprecated format for this, we should discard its error output.

That seems a good idea for production environments as well, as outdated
formats might be quite frequent, and having completion print error messages
for all of these is certainly bad style.

45. By Martin von Gagern

Reformat bash input snippet.

Instead of a single multiline string with a dictionary of substitutions, we
now build the snippet one line at a time, using normal python indentation
and providing never more than a single value for substitution.

44. By Martin von Gagern

Test bash completion for tags.

This requires a working tree and a way for the completion script to call the
appropriate bzr command. TestBashCompletionInvocation deals with this.

43. By Martin von Gagern

Added some selftests executed through bash.

Based on a discussion with Vincent Ladeuil in the merge request proposing inclusion of the plugin into the bzr source tree:
https://code.launchpad.net/~gagern/bzr/bug560030-include-bash-completion-plugin/+merge/23912

42. By Martin von Gagern

Restore completion of registry options immediately after =.

Revision <email address hidden> broke this
by basing all completions on "compgen -W ... $cur", where $cur == "=" here,
so the enum options don't match.

41. By Martin von Gagern

Fix Python 2.4 syntax and testtools dependency.

40. By Martin von Gagern

Complete tag names.

39. By Martin von Gagern

Set root it to allow joining with other branches.

This works around the lp:370710 bug by selecting a new file id for the root
directory. It should allow me to join this tree into bzr.dev.

38. By Martin von Gagern

Add --plugin switch to selectively include plugins.

This is intended for scenarios where a bash completion script is generated
once but distributed to a number of sifferent bzr setups. In this case the
list of plugins for which commands are included in the completion function
can be controlled and used to restrict the function to a fixed set of
plugins. Other aspects of command line completion, in particular registry
values registered by plugins, are not affected by this switch.

37. By Martin von Gagern

Introduce --no-plugins option to script execution mode.

This provides a simple way to suppress generation of any plugin completions.
It doesn't make a lot of sense for cases where bzr-bash-completion is used
as a plugin itself, because then obviously it has to be loaded.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:bzr-bash-completion
This branch contains Public information 
Everyone can see this information.