You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@subversion.apache.org by "Daniel Shahaf (äñ§€¥£¢ JIRA)" <ji...@apache.org> on 2018/09/14 15:10:00 UTC

[jira] [Commented] (SVN-4772) Shelving: Command-line completion of shelf names

    [ https://issues.apache.org/jira/browse/SVN-4772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16614960#comment-16614960 ] 

Daniel Shahaf (äñ§€¥£¢) commented on SVN-4772:
----------------------------------------------

Attached a first stab at completing shelves under zsh.  The function can't assume any particular version of svn, but it only runs `svn x-shelf-list --quiet`, which shouldn't do anything destructive even if the 'svn' binary isn't a 1.11 binary.

It does not complete shelf versions. Is there a way to generate shelf versions given a shelf name? Ideally with a description for each, not just a number?

Should we wait until 1.11.0 GA before submitting this patch to zsh? In case we make incompatible changes to the CLI syntax, we don't want zsh to be supporting an out-of-date syntax.

That patch may depend on [https://sourceforge.net/p/zsh/code/ci/decc78c72110159bd8a27faf579c020abca6cb0b/].

> Shelving: Command-line completion of shelf names
> ------------------------------------------------
>
>                 Key: SVN-4772
>                 URL: https://issues.apache.org/jira/browse/SVN-4772
>             Project: Subversion
>          Issue Type: Bug
>          Components: tools
>            Reporter: Julian Foad
>            Priority: Major
>         Attachments: 0001-_svn-Complete-shelves-as-in-svn-1.11.0.patch
>
>
> Command-line completion for shelf names would be useful.
> Our 'tools/client-side/bash_completion' script could be enhanced to do this.
> I intentionally implemented "svn shelf-list -q" that outputs just the bare names, with that in mind.
> danielsh points out that at least in zsh it's common for completions to be listed with a short description alongside each; this could be something like the output of "svn shelf-list" (no "-q") for a starting point. I'm not sure if a way to show completions with descriptions is standardized in Bash.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)