The 'filenames' option to complete is removed, as it would prevent proper completion of local refs like tmz/f13.
On systems with bash-completion >= 1.2, this should have little effect because the _filedir command sets the option as needed (or emulates it on older bash releases that lack compopt).
On systems with older bash-completion (like EL-5 currently), there is a minor downside in that filename completion won't append trailing slashes to directories without the 'filenames' option. Ideally, bash-completion will be updated on EL-5 and this minor inconvenience will vanish
attachment 0002-fedpkg-Complete-branch-names-for-switch-branch.patch
This got kicked back, as there were other major changes going on in the bash completion. Waiting for an updated patch.
attachment 0001-fedpkg-Use-_filedir-for-path-completion.patch
attachment 0002-fedpkg-Remove-filenames-option-from-completion.patch
The two new attached patches should provide general improvements on top of the new completion code added by Jan in [61b2972]. It also addresses Ville's change in #66, I think.
The important thing is to get rid of -o filenames, since that breaks completion of branch names with '/' in them, e.g: tmz/f14.
Applied both new patches.