craftsman
craftsman

Reputation: 15653

SVN Override remote files absolutely by local files

I am using SVN in Eclipse (Subclipse). It is frustrating to spend two hours to figure out (apparently simple task) how to absolutely commit your local files to repository (with no comparisons, no updates, without accepting any incoming change), and still no success. Can stackoverflowers help me out here?

Thanks

EDIT

Every time I try to commit, it first asks me to update. When I update, it automatically merges non-conflicting changes from both sides, that I do not want. Is there anyway to update and commit without merging changes from both sides?

Upvotes: 0

Views: 4353

Answers (2)

craftsman
craftsman

Reputation: 15653

Here's how I did it:

  1. Exported working copy to another directory.
  2. SVN->Delete the current working copy.
  3. SVN->Commit current working copy.
  4. Copied the exported files back into the working directory.
  5. SVN->Add copied files.
  6. SVN->Commit copied files.

Upvotes: 2

Adrian Grigore
Adrian Grigore

Reputation: 33318

You need to do the following:

  1. Export a your working copy to another directory (SVN has an export command for that)
  2. Update your working copy
  3. Copy the exported files over it.

Upvotes: 1

Related Questions