dccrowley
dccrowley

Reputation: 171

SVN - how do I commit previous version back into svn?

I am in version 100 svn co -r92 http://www.projectname.svn/trunk projectname seems to work but how do I get this v92 version committed? If I do an svn up I get conflicts If I do svn commit it won't work

Any idea's I'm lost here

Upvotes: 11

Views: 14591

Answers (3)

orip
orip

Reputation: 75537

svn up -rHEAD           # be sure you're updated with the latest HEAD
svn merge -rHEAD:92 .   # reverse-merge back to revision 92
svn commit              # commit

Upvotes: 19

Gadolin
Gadolin

Reputation: 2686

You need to merge back your changes svn merge -r100:92 file.txt

Upvotes: 0

J.N.
J.N.

Reputation: 8431

you need to reverse merge the revisions on an up to date working copy, then commit. i d recommended against doing that withthe command line client, use a graphical client.

Upvotes: 0

Related Questions