You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Colleen R. Dick" <pl...@proaxis.com> on 2008/04/02 23:57:22 UTC

commit all but this one file

I want to commit everything in the working copy except this ONE file 
that is highly dubious.  Is there any way to do that. 

RE: Re: commit all but this one file

Posted by ni...@planet.nl.
Thanks for the script. I only have one flaw. Normal subversion commit operation skips externals. Change line 15 of the script to: 

svn status --ignore-externals "$@" | grep '^\(M\|A\|D\|R\)' >$TMPFILE

to recreate this behaviour.

Hth,

Nick S.

-----Original Message-----
From: Marc Haisenko [mailto:haisenko@comdasys.com]
Sent: Thu 4/3/2008 10:11
To: users@subversion.tigris.org
Subject:  Re: commit all but this one file
 
On Thursday 03 April 2008, Colleen R. Dick wrote:
> I want to commit everything in the working copy except this ONE file 
> that is highly dubious.  Is there any way to do that. 

I have written a small (dirty) script to do this (see attached file) on Linux. 
It opens your configured editor and there you can remove all the filenames 
you don't want to have committed. After saving, only the filenames that 
remain are committed. Exit without saving to abort.
	Marc

-- 
Marc Haisenko

Comdasys AG
Rüdesheimer Str. 7
80686 München
Germany

Tel.: +49 (0)89 548 433 321


Re: commit all but this one file

Posted by Marc Haisenko <ha...@comdasys.com>.
On Thursday 03 April 2008, Colleen R. Dick wrote:
> I want to commit everything in the working copy except this ONE file 
> that is highly dubious.  Is there any way to do that. 

I have written a small (dirty) script to do this (see attached file) on Linux. 
It opens your configured editor and there you can remove all the filenames 
you don't want to have committed. After saving, only the filenames that 
remain are committed. Exit without saving to abort.
	Marc

-- 
Marc Haisenko

Comdasys AG
Rüdesheimer Str. 7
80686 München
Germany

Tel.: +49 (0)89 548 433 321

Re: commit all but this one file

Posted by "Colleen R. Dick" <pl...@proaxis.com>.
Indeed....   I was hoping there would be some syntax to exclude a 
certain file or files like
svn commit -exclude badfile.c   Sorry to ask the question but I'm on the 
road and don't have the manual.


Larry Martell wrote:
> On Wed, Apr 2, 2008 at 5:57 PM, Colleen R. Dick <pl...@proaxis.com> wrote:
>   
>> I want to commit everything in the working copy except this ONE file that is
>> highly dubious.  Is there any way to do that.
>>     
>
> Explicitly list all the files you want to commit on the command line,
> and omit the one you do not want to commit.
>
>
>   


Re: commit all but this one file

Posted by Larry Martell <la...@gmail.com>.
On Wed, Apr 2, 2008 at 5:57 PM, Colleen R. Dick <pl...@proaxis.com> wrote:
> I want to commit everything in the working copy except this ONE file that is
> highly dubious.  Is there any way to do that.

Explicitly list all the files you want to commit on the command line,
and omit the one you do not want to commit.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: commit all but this one file

Posted by Geoffrey <li...@serioustechnology.com>.
Colleen R. Dick wrote:
> I want to commit everything in the working copy except this ONE file 
> that is highly dubious.  Is there any way to do that.

You don't mention what OS you're using, but if it's Linux, I believe 
something like the following will work:

svn ci $(ls |grep -v $FILE_I_DONT_WANT_TO_COMMIT)

-- 
Until later, Geoffrey

Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
  - Benjamin Franklin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org