You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Peter Michaux <pe...@gmail.com> on 2005/11/08 20:25:28 UTC

faster way to mirror changes to svn repository

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

Re: faster way to mirror changes to svn repository

Posted by Steve Greenland <st...@lsli.com>.
On Tue, Nov 08, 2005 at 12:25:28PM -0800, Peter Michaux wrote:
> 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!

You might find the svn_load_dirs script useful. It usually used for
updating local repos of third-party code, but should do what you want
(assuming I do, in fact, understand what you want :-)).

Steve

-- 
"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.
                           -- (Stolen from the net)

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

Re: faster way to mirror changes to svn repository

Posted by T L Holaday <tj...@sneakemail.com>.
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
>

Re: faster way to mirror changes to svn repository

Posted by sub paul <su...@gmail.com>.
Are you looking for a command line tool?

I have not needed a commandline tool to commit yet, but use
tortoiseSVN on windows and like it very much.



On 11/8/05, Peter Michaux <pe...@gmail.com> 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
>

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