You wrote:
> The subversion case is a bit special. Even if the removed item was a
> directory, the suffix should be a space, not a slash, because AFAIK,
> doing "svn revert" on an item inside a removed directory has not much
> sense.

We could try passing -S ' ' to  _files. Perhaps try adding that in
yourself: find this bit and add -S " " -r '/\-'  after _files.

  revert)
    args+=(
      '*:file:_files -g "(.svn|*)(/e:_svn_deletedfiles:,e:_svn_status:)"'
    )
  ;;
  
This is probably also relevant to the delete subcommand.

What this will break is completing a slash after real existing
directories. But reverting directories is perhaps more common than
reverting a file from a subdirectory.

The more common use of fake files is with things like Cygwin's cygdrive
where the fake files are directories. I don't have access to cygwin but
that may work due to the fact that they will exist when stat is run.

Oliver


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to