[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] fix svn cat to skip unversioned items V2.

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2005-05-23 22:51:10 CEST

On Sun, 22 May 2005 vivek@collab.net wrote:

> On Sat, 2005-05-21 at 03:38, Daniel Rall wrote:
>
> > Considering the case that a user makes a typo on the command-line while
> casually perusing the repository, the behavior seems great. But considering
> the case where the user is either gathering the contents of a few specific
> files to exchange will a business partner, or scripting some operations
> using the command-line client, should any of the requested files be cat'ed
> when some of them cannot be?
> Valid point. Should we have a command line option that tells we are
> supposed to stop as soon as we get an error? Something like
> stop-on-error?
> I had version 1 of the patch reviewed by Peter and he thinks that other
> commands should also be fixed. But considering the arguments raised by you I
> would like to tackle them only if there is a consensus on the behavior.
>
I think we should just warn about targets for which a command obviously
makes no sense. For example, cat should skip unversioned items,
non-existent items and directories, like in the patch. This is also
consistent with cat on my Linux system, FWIW. (That's GNU coreutils.) This
makes it easier to use wildcard characters.

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon May 23 22:42:13 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.