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

Re: Adding forgotten files to a svn repository

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-11-05 15:29:42 CET

Zack Brown <zbrown@tumblerings.org> writes:

> On Wed, Nov 06, 2002 at 02:36:13AM +1300, Adam Warner wrote:
> > Hi all,
> >
> > I'm very impressed with svn, thanks.
> >
> > If you've been a dunce and added a number of additional files to a number
> > of different directories in a checked out repository without remembering
> > to "add" those files as you created them, what is the best way to get them
> > all into the repository?
>
> Check the repository out into a working directory, and do a diff on the
> two directories. Add all files missing from the repository.

Actually, this is exactly what 'svn status' is for.

Run 'svn status' in a working copy. Any unversioned items show up
with a '?'. You can write a little shell script to grep those
filenames out of the list and pipe them into 'xargs svn add'.

People have posted such examples around here somewhere...

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 5 15:31:21 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.