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

Re: svn propset from stdin

From: Zack Weinberg <zack_at_codesourcery.com>
Date: 2002-10-21 23:07:16 CEST

On Mon, Oct 21, 2002 at 09:51:05PM +0100, Philip Martin wrote:
> Philip Martin <philip@codematters.co.uk> writes:
>
> > Brandon Ehle <azverkan@yahoo.com> writes:
> >
> > > Any idea how difficult it would be for me to modify "svn propset" to
> > > take properties from stdin? The reason I want to do this is to allow
> > > a script to append "svn:ignore"s via something like
> > >
> > > > svn pg svn:ignore | someapp | svn ps svn:ignore
> > > Or it there a better way to do this?
> >
> > svn pg svn:ignore > /dev/stdout | someapp | svn ps svn:ignore -F /dev/stdin
>
> Of course 'svn pg' does the right thing already so this is all you
> need
>
> svn pg svn:ignore | someapp | svn ps svn:ignore -F /dev/stdin

/dev/stdin is not available even on all Unixes, much less elsewhere.
Might I suggest "-F -" be taken to mean read standard input? (I'm
assuming that no -F option at all has some other, useful, behavior.)

zw

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 21 23:08:02 2002

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.