You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by thomas peter <th...@antas.com> on 2004/11/24 12:51:17 UTC

add while commit

hi folks,

is there a way to see all new files (not yet under versioncontrol) and add 
them before doing an 'svn commit'?
tortoisesvn for example shows you new and changed files while commiting...

thanx in advance,
thomas


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

Re: add while commit

Posted by Jani Averbach <ja...@jaa.iki.fi>.
On 2004-11-24 12:51+0000, thomas peter wrote:
> 
> is there a way to see all new files (not yet under versioncontrol) and add 
> them before doing an 'svn commit'?

'svn st' will show to you the status of your working copy:

http://svnbook.red-bean.com/en/1.1/ch03s05.html#svn-ch-3-sect-4.3.1
http://svnbook.red-bean.com/en/1.1/re26.html


If you are on unix, e.g. to see only unversioned files, you could use that:
svn st | grep '^?'

Br, Jani

-- 
Jani Averbach


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

Re: add while commit

Posted by Jani Averbach <ja...@jaa.iki.fi>.
On 2004-11-24 13:48+0000, thomas peter wrote:

Hi Thomas
> 
> i'm just wondering why 'svn import $DIR' missed these files...
> 

Have you checked your 'ignore' settings?

Look for 'global-ignores':
http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2

and for 'svn:ignore' here:
http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.3

If this didn't clear your import issues and you think there is
something fishy going on by 'svn import', then we need to see
the transcript of your commands and your data set (file names).

Please see http://svn.collab.net/repos/svn/trunk/BUGS for further
details.

BR, Jani

-- 
Jani Averbach


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

Re: add while commit

Posted by thomas peter <th...@antas.com>.
hi christopher, hi jani,

Christopher Ness <ch...@nesser.org> wrote in
news:1101302592.4036.46.camel@woman.localdomain: 

> Use `svn status`, here is the output for a LaTeX document I am

ohh, i should have opened my eyes. thank you, and jani!

> If you have may new files that need to be added doing that all by hand
> wouldn't be fun.  

for i in $(svn st -v | grep '^?' | awk '{ print $2 }'); do svn add $i; done
was the one i was looking for.

> You could do some filtering on the output of status (Jani just gave
> the grep line), but how you go about adding the files is up to you
> since you may not want every unknown file to be added to the
> repository. 

i'm just wondering why 'svn import $DIR' missed these files...

anyway.

thanx again,
thomas


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

Re: add while commit

Posted by Christopher Ness <ch...@nesser.org>.
On Wed, 2004-11-24 at 07:51, thomas peter wrote:
> is there a way to see all new files (not yet under versioncontrol) and add 

Use `svn status`, here is the output for a LaTeX document I am
building.  I only keep the "source" under SVN and not the output files.

You'll notice that the file "include/svn_version.tex" is not under
revision control.  You could execute an `svn add` here if you like, but
that file is built by my Makefile so I don't want it in SVN.

Also the file modguide.tex is Modified... `svn help status` for more
info on the status chars.

[nesscg@woman src]$ svn status
?      modguide.toc
?      modguide.aux
?      modguide_prettyprint.pdf
?      modguide.log
?      modguide.dvi
?      modguide.ps
?      include/svn_version.tex
M      modguide.tex

> them before doing an 'svn commit'?

If you have may new files that need to be added doing that all by hand
wouldn't be fun.  

You could do some filtering on the output of status (Jani just gave the
grep line), but how you go about adding the files is up to you since you
may not want every unknown file to be added to the repository.

Cheers,
Chris