Agaric Wants a way to replace a directory, have SVN just deal
So we're moving a client's site from a server that only had FTP, and find out the download wasn't complete after we already added the files to our SVN repository. So I thought, this is what Subversion does, right? You make local changes and it keeps track of them. Apparently, wrong. Not when it comes to replacing entire directories.
svn replace directory with another directory
.svn' containing working copy admin area is missing
If it is an option, I would recommend you do a new checkout and then just copy any files you had modified over the top of your new checkout.
Mark Phippard
http://subversion.open.collab.net/servlets/ProjectForumMessageView?messageID=2122&forumID=43
This might be great advice for the person who asked the question, but this is how I got into this problem-- I copied my directory over the old directory, though. Probably files only, damn, that's not so useful.
What about replacing Drupal 5.1 with Drupal 5.2?
Must be a delete or a merge or something desired...
Oh Subversion, why do you keep your powers so mysterious!
So, the ugly way that makes one wonder why one is using version control, or rather, not using version control that is functional and vaguely intuitive:
rm -rf example_directory_i_replaced/
svn update
[Subversion recreates the directory]
svn delete example_directory_i_replaced/
svn commit -m "to make it disappear from local copy also"
cp -r /downloaded/files/example_directory_i_replaced/
example_directory_i_replaced/
svn add example_directory_i_replaced/
svn commit -m "new, proper directory"
So we're moving a client's site from a server that only had FTP, and find out the download wasn't complete after we already added the files to our SVN repository. So I thought, this is what Subversion does, right? You make local changes and it keeps track of them. Apparently, wrong. Not when it comes to replacing entire directories.
svn replace directory with another directory
.svn' containing working copy admin area is missing
If it is an option, I would recommend you do a new checkout and then just copy any files you had modified over the top of your new checkout.
Mark Phippard
http://subversion.open.collab.net/servlets/ProjectForumMessageView?messageID=2122&forumID=43
This might be great advice for the person who asked the question, but this is how I got into this problem-- I copied my directory over the old directory, though. Probably files only, damn, that's not so useful.
What about replacing Drupal 5.1 with Drupal 5.2?
Must be a delete or a merge or something desired...
Oh Subversion, why do you keep your powers so mysterious!
So, the ugly way that makes one wonder why one is using version control, or rather, not using version control that is functional and vaguely intuitive:
rm -rf example_directory_i_replaced/
svn update
[Subversion recreates the directory]
svn delete example_directory_i_replaced/
svn commit -m "to make it disappear from local copy also"
cp -r /downloaded/files/example_directory_i_replaced/
example_directory_i_replaced/
svn add example_directory_i_replaced/
svn commit -m "new, proper directory"
More like this
- Agaric wants version control that lets Drupal core and contrib replace entire directories within our checkouts
- Agaric replaces Quicktags with BUEditor (both are easy ways to add HTML markup to your content)
- Replace local files or directories with repository version
- Grep (search) through files in multiple folders avoiding .svn directories
- Grep multiple files but exclude .svn (subversion) directories


Comments
Post new comment