User login

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"

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.