FS#13733 - [subversion] path completion produces whitespaces

Attached to Project: Arch Linux
Opened by Dieter Plaetinck (Dieter_be) - Tuesday, 10 March 2009, 09:45 GMT
Last edited by Jan de Groot (JGC) - Monday, 08 February 2010, 23:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Paul Mattal (paul)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Taken from https://bugzilla.redhat.com/show_bug.cgi?id=430059


>>>>>>>>>>
Description From Tim Niemueller 2008-01-24 05:16:33 EDT

Description of problem:
Assume you are inside a Subversion working copy. There is a path src/foo/bar.c.
There are other files as well in the foo directory, but you only want to commit
bar.c. You would type "svn ci src/foo/bar.c". Using the auto-completion, it will be

svn ci s<tab> which is then extended to "svn ci src ", note the space at the
end? For each path element you then have to do <Backspace> and type a slash and
then tab on. What the auto-completion should rather do is work like the
completion for ls. After the first expansion it should show "svn ci src/".

Version-Release number of selected component (if applicable):
bash-completion-20060301-6.fc8

How reproducible:
Always

Steps to Reproduce:
1. Checkout something via svn
2. Try auto-completion to a path with a "svn ci" prepended

Actual results:
It completes every directory on the path to the dir name followed by a space.

Expected results:
Work like ls auto-completion, completing paths to dir/.

Additional info:
This behaviour actually slows one down instead of going faster.



>>>>>>>>>>>

I see in ABS that we do quite a few patches already, but nothing to fix this.
I also don't know if one of the other bash-completion providers (  FS#11196  ) fixes this.
This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 08 February 2010, 23:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  See last comment.
Comment by Dieter Plaetinck (Dieter_be) - Tuesday, 10 March 2009, 09:47 GMT
Oh yeah, in the ticket, someone mentions the following fix.

/etc/bash_completion:
replace complete -F _svn $default svn
with complete -F _svn $filenames svn


This seems to work for me, though I haven't checked how clean this fix is yet.
Comment by Alessandro Doro (adoroo) - Tuesday, 10 March 2009, 13:33 GMT
Note that a bash completion script (without this issue) is provided by subversion upstream.
See also:  FS#10208 
Comment by Dieter Plaetinck (Dieter_be) - Wednesday, 29 April 2009, 22:23 GMT
  • Field changed: Percent Complete (100% → 0%)
How do you define "now" ?
The package is still the same version ( 20060301-9 ) and the issue is still there.
Comment by Eric Belanger (Snowman) - Wednesday, 29 April 2009, 22:24 GMT
bash-completion is out-of-date. Did you tried updating it?
Comment by Ionut Biru (wonder) - Saturday, 06 February 2010, 15:27 GMT
status?
Comment by Paul Mattal (paul) - Saturday, 06 February 2010, 16:16 GMT
Hoping to get through a bunch of these later today. I've just picked up this package last month and am still getting my bearings.
Comment by Paul Mattal (paul) - Monday, 08 February 2010, 12:41 GMT
Actually, this seems to be working for me with the current bash-completion 1.1-2.

Can anyone else confirm this? I can tab-complete directories while building an svn ci commandline in an svn checkout directory.
Comment by Ionut Biru (wonder) - Monday, 08 February 2010, 14:50 GMT
seems to work here
Comment by Dieter Plaetinck (Dieter_be) - Monday, 08 February 2010, 18:51 GMT
works for me (OP) too. can be closed.
probably thanks to  FS#11196 

Loading...