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

RE: Re: Exclude Files from commit

From: Jay Glanville <jay.glanville_at_naturalconvergence.com>
Date: 2004-06-15 17:47:19 CEST

Someone gave me advice in the past on how to deal with this in the
command-line environment.

- request a list of all files who have been modified
  svn status | grep ^M
- pipe it to a cut so that you only get the filenames
  | cut -c 8-
- redirect it to a file for textual editing
> out.txt
- edit the file, removing lines that you don't want submitted
- perform a checkin using the --file argument. This will checkin to
subversion only the files who's paths and names are in the file

Synopsis:
- svn status | grep ^M | cut -c 8- > out.txt
- [edit out.txt, removing the lines for files not to be checked in]
- svn ci --file out.txt

This should give you the same functionality as TortousSVN. In actual
fact, now that I think about it, you could even write a script that does
this, and then goes and looks in an 'exclude' file that you've setup,
and removes files that are in this excludes file.

The power of scripting !!!

Hope this helps

JDG

--
Jay Glanville
Web Developer
jay.glanville@naturalconvergence.com
(613) 725-2030 x393
http://www.naturalconvergence.com
> -----Original Message-----
> From: Ray Johnson [mailto:Rayj@ingenio.com] 
> Sent: Tuesday, June 15, 2004 11:06 AM
> To: Robert Krugmann
> Cc: Subversion Users
> Subject: RE: Re: Exclude Files from commit
> 
> 
> 
> I usually just do a svn status to find out what I *would* be checking
> in.  Then I do a svn commit copying all the files I *want* to 
> commit to
> the command line.  This can be a pain when there are lots of files.
> 
> TortoiseSVN does something like that as well - though all 
> through a nice
> GUI (no copy paste stuff).  Perhaps some other graphical clients also
> provide this feature.
> 
> Ray
> 
> -----Original Message-----
> From: Lukas Ruf [mailto:ruf@rawip.org] 
> Sent: Tuesday, June 15, 2004 3:42 AM
> To: Robert Krugmann
> Cc: Subversion Users
> Subject: Re: Exclude Files from commit
> 
> > Robert Krugmann <Robert.Krugmann@infoteam.de> [2004-06-15 12:35]:
> >
> >
> > Is there a possibility to temporarily exclude files from version 
> > control in subversion?
> >
> 
> I am not sure but can't you deny write access to the file?
> I limit write access to directories either via
>     AuthzSVNAccessFile
> or hook script pre-commit in my hooks-directory.
> 
> wbr,
> Lukas
> -- 
> Lukas Ruf           | Wanna know anything about raw |
> <http://www.lpr.ch> | IP? -> <http://www.rawip.org> | eMail 
> Style Guide:
> <http://www.rawip.org/style.html>|
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 15 17:49:17 2004

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

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