Saturday, 23 January 2010

Merging Changes Made to a Rogue SVN Project...

Today I discovered that a project I have been working with is not able to sync with my SVN repository. This is because I moved disk partitions of both the repository and the project recently. I should have known.

Anyway, for future reference - here's the solution (using TortiseSVN):

  1. Rename the root directory of the project.
  2. Checkout your project to the same directory that the 'rogue' project is in.
  3. Open 2x explorer windows side-by-side and go into each respective project folder - so your seeing the contents of each of the project folders, one in each window.
  4. Select everything in the rogue folder, RIGHT click and drag to the window with the legit checked-out project in it.
  5. Select the "SVN Export all items here" option. You can safely overwrite everything when prompted, because it's all unmodified stuff straight out of your repository.

Now you can check everything in and your SVN repository is happy again!

No comments:

Post a comment

Migrating (and Open-Sourcing) an Historical Codebase: SVN-to-Git

I have a SVN repo on my local machine that I have been shoving stuff into since before I knew how to use revision control systems properly (...