Joachim
Joachim

Reputation: 3260

svn: reload an old revision

I'd like to reload an old revision of my repository. My current revision ist 645 and I'd like to have 642 as my current version. The changes from 642 to 645 are changes in the files and additional files. I use the common method for that:

svn merge -r 645:642 .

This does not work either:

svn merge -r HEAD:642 .

Nothing happens. Still the old reversion. But when I do the following:

svn up -r 642

The local copy works just fine. But i would like to commit it as my current revision. But when I use

svn ci -m "Revert"

It does nothing at all.

Upvotes: 0

Views: 489

Answers (2)

Perception
Perception

Reputation: 80633

You are close. You did the merge but forgot to commit afterwards.

svn commit -m "Reverted for whatever reason"

Don't forget to have the revision you are reverting from in your local workspace before issuing the revert command.

Upvotes: 1

imm
imm

Reputation: 5919

You need to merge with HEAD. See this article.

Upvotes: 1

Related Questions