• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse SVN: how to commit a revision to be HEAD again?

 
Ranch Hand
Posts: 701
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have made changes in a Java project and already commit them, but now I want to return to a prior version and make it to be on HEAD.
I updated the code from SVN history and now I want to force this version to be on HEAD, how do I do that?

 
Ranch Hand
Posts: 121
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should update to a HEAD, reverse-merge your commit and then commit fixed source. See Undoing changes in SVN manual for a general idea. In eclipse svn it may be something linke "merge->merge range of revisions".
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another option: check out the revision you want to a temporary directory (usually best to do this from the command line and not within Eclipse, but you could do it in Eclipse in a separate workspace), then also check out HEAD (within Eclipse), then copy the files in the temporary directory over the files in the workspace project, then in Eclipse select the project and hit F5 (refresh). You can then check in the changes and the files in HEAD will be back to what they were in the desired revision.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic