Subversion question

Ian Petersen ispeters-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Mar 19 02:08:36 UTC 2007


On 3/18/07, Madison Kelly <linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org> wrote:
>    Does anyone know if there is a way to have svn automatically add new
> directories and files when checking in to a repository?
>
>    I've got a project that has a lot of files being added to it on a
> regular basis and it's troublesome to do it manually. :p

I guess it depends on what you mean by manually, but you can always do
this with a fairly simple shell script.

I frequently do it like this (in bash):

svn add $(svn status | fgrep '?' | awk '{ print $2; }')

If you want to add directories without automatically adding all of
their descendants, do an svn add -N instead of a plain svn add.

Ian

-- 
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list