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

Re: Import some files in a repository

From: Matthieu Moy <Matthieu.Moy_at_imag.fr>
Date: 2007-11-15 18:10:13 CET

Benjamin Watine <watine@cines.fr> writes:

> I've set up a repository for the sources of a project. A developper of
> our team didn't use the repository, and did a lot of work ; he have
> modified around 100 files.

Did he rename any file?

> I've tried this :
> make a temp local repos with svn co

You have to be carefull to "svn co" the revision the work is based on.
If other developers commited since he started working, you have to
merge their work with his.

> delete the modified files in this new local repos (svn del, rm)
> import the new modified file in the local repos (cp, svn add)

Why "svn delele + svn add"? If they are the same files, the file is
not deleted and re-added, it's just modified. Modify your local copy,
check with status/diff, and commit.

More precisely, if no renaming is involved, I'd do

$ svn co -r <base revision for developer's work> ... dir/
$ cd dir/
$ cp -r /path/to/other/dev/work/* ./
$ svn update
$ svn status
$ svn diff
$ svn commit

If files need to be renamed, you need to do that manually with "svn
mv". If the developer added or deleted files, you need to say that
explicitely too.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 15 18:12:22 2007

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.