[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: Daniel Stenberg <daniel_at_haxx.se>
Date: 2002-01-22 23:50:40 CET

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`

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.

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
---------------------------------------------------------------------
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.