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

Re: faster way to mirror changes to svn repository

From: T L Holaday <tjvnzk03_at_sneakemail.com>
Date: 2005-11-13 16:42:38 CET

Picking up the added files is simple from the command line. This command ...

$ svn status | grep ? | sed s/?// | tee files.lst

... will put into files.lst a list of all files and directories in the
current directory which are were not known to the repository at the time you
created the working directory. It will also display those files on the
screen so you can see if there's anything you don't like.

If you are satisfied, issue the command ...

$ svn add --targets files.lst

... and they'll all go in.

Deleting files is another matter. I think you are less likely to do
something you regret if you use svn del individually. If you have a whole
directory of files to remove, you can create a list of victims and use the
--targets option of svn del.

--
~tlholaday()
On 11/8/05, Peter Michaux
petermichaux-at-gmail.com<http://petermichaux-at-gmail.com>|Subversion.Users/gmailLabelled|wrote:
>
> Hi,
>
> I am using svn at an early stage in a project. That means a lot of changes
> to the directories and files in my project. Is it possible to avoid using
> "svn add foo.rb" and "svn delete bar.rb" for every file I create or
> remove. I imagine there is a mirror command that I could run from the top of
> my project that will add all the files that I added and delete all the files
> I deleted. Please tell me it exists!
>
> Thanks,
> Peter
>
Received on Sun Nov 13 16:45:25 2005

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.