Re: Replacing a whole folder

2009-01-16 Thread Ian Beck

I just use rsync.  Assuming I just downloaded and uncompressed a zip
file called "updated-directory" with a folder inside called "some-dir-
tree" whose contents need to replace the same folder in my SVN working
copy ($ is prompt):

$ cd ~/Downloads/updated-directory/
$ rsync -a ./some-dir-tree/ ~/Documents/my-svn-working-copy/some-dir-
tree/

Voila.  Rsync is very smart about only copying the things that it
needs to, which means that it doesn't overwrite .svn folders in your
directory tree.  The -a option is a shortcut for a slough of useful
other options.  If you want lots of info you could also run:

$ rsync -av source target

Which puts it in verbose mode.  Note that the trailing slash on the
directory can be important.  With trailing slash means "copy the
contents of this directory"; without means "copy this directory".
More info is of course available by running "man rsync", but be warned
the rsync manual page is LONG.

Ian

On Jan 15, 10:43 am, Ray  wrote:
> I have finally found how to do this using vendor branches +
> svn_load_dirs.pl, following the description 
> here:http://svnbook.red-bean.com/en/1.0/ch07s04.html
>
> Hope this helps,
> Ray
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Versions" group.
To post to this group, send email to versions@googlegroups.com
To unsubscribe from this group, send email to 
versions+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/versions?hl=en
-~--~~~~--~~--~--~---



Re: Replacing a whole folder

2009-01-15 Thread Ray
I have finally found how to do this using vendor branches +
svn_load_dirs.pl, following the description here:
http://svnbook.red-bean.com/en/1.0/ch07s04.html

Hope this helps,
Ray

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Versions" group.
To post to this group, send email to versions@googlegroups.com
To unsubscribe from this group, send email to 
versions+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/versions?hl=en
-~--~~~~--~~--~--~---



Re: Replacing a whole folder

2008-12-22 Thread Ray
I just did a similar thing the other day with Drupal -- I just do an svn
delete on all the folders to be replaced, commit, then bring in the new ones
and do an svn add.  It's simple, but has the downside of these folders
losing their history.  Merging would probably help that problem, but I've
never taken the time to learn how to do it the right way since I won't be
needing the history of those folders.
Hopefully someone else will tell us what the right operation would be.

-Ray

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Versions" group.
To post to this group, send email to versions@googlegroups.com
To unsubscribe from this group, send email to 
versions+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/versions?hl=en
-~--~~~~--~~--~--~---