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

Re: raises hand for bite-sized issue #604

From: Mark Benedetto King <bking_at_answerfriend.com>
Date: 2002-01-23 01:04:16 CET

On Tue, Jan 22, 2002 at 11:50:40PM +0100, Daniel Stenberg wrote:
> On Tue, 22 Jan 2002, Mark Benedetto King wrote:
>
> > Since it seems like a touchy issue, maybe, instead, we could have a command
> > line option that specifies a file that contains a list of files to commit.
> > This gives the functionality I want, without overloading the $EDITOR
> > functionality. I'd be happy to implement this (trivial) option.
> > Comments?
>
> You mean like this:
>
> $ svn commit `cat list-of-files.txt`
>

No, I don't mean that. That breaks if list-of-files.txt is large, and
it is very difficult to predict exactly how large it needs to be to
break it. Of course, xargs fixes this problem, but breaks the
atomicity issue.

> If you want it run-time editable, you could still go ahead and write a
> wrapper script that would do something similiar to:
>
> #!/bin/sh
> file=list-of-files.txt
> svn status | grep "^M" | awk '{print $2}' > $file
> if [ -s $file ]; then
> $EDITOR $file
> if [ -s $file ]; then
> svn commit $file
> else
> echo "no files left in list to commit"
> fi
> else
> echo "no files are changed"
> fi
>
> This is just written off the top of my head, it most certainly won't work
> exactly like this but it shows my point.
>

I'm not sure what that does, but I don't think it does what
want it to.

--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:58 2006

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.