Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » How to revert a revision?
How to revert a revision? [message #489311] Fri, 02 October 2009 07:36 Go to next message
Eclipse User
Originally posted by: joerg.von.frantzius.artnology.com

Hi,

I just had the problem that I committed several files in one revision,
and now I want to undo that commit. What would be the easiest way of
doing this using subversive?

It would be great if it was possible to select the revision in one of
its files' history and have a "Get previous contents" menu item. Then a
dialog should ask whether you want to get the previous contents only for
the single file you were looking at, or for all of the revision's
affected files.

Or did I not see the obvious here somewhere?

Regards,
Jörg
Re: How to revert a revision? [message #490123 is a reply to message #489311] Wed, 07 October 2009 08:57 Go to previous messageGo to next message
Jörg Thönnes is currently offline Jörg Thönnes
Messages: 229
Registered: July 2009
Senior Member
Hi Jörg,

AFAIK reverting is ment for _unchecked_ changes.

But to revert a check-in, you would like to do a reverse merge. See the SVN book for details:

http://svnbook.red-bean.com/en/1.5/svn.branchmerge.basicmerg ing.html#svn.branchmerge.basicmerging.undo

and then try to do this using Subversive. Never tried it myself...

Good luck, Jörg!

Jörg :-)

On 10/02/09 13:36, Jörg von Frantzius wrote:
> Hi,
>
> I just had the problem that I committed several files in one revision,
> and now I want to undo that commit. What would be the easiest way of
> doing this using subversive?
>
> It would be great if it was possible to select the revision in one of
> its files' history and have a "Get previous contents" menu item. Then a
> dialog should ask whether you want to get the previous contents only for
> the single file you were looking at, or for all of the revision's
> affected files.
>
> Or did I not see the obvious here somewhere?
>
> Regards,
> Jörg
Re: How to revert a revision? [message #491652 is a reply to message #489311] Thu, 15 October 2009 07:51 Go to previous messageGo to next message
Igor Burilo is currently offline Igor Burilo
Messages: 435
Registered: July 2009
Senior Member
Hello J
Re: How to revert a revision? [message #491727 is a reply to message #491652] Thu, 15 October 2009 11:05 Go to previous messageGo to next message
Jörg Thönnes is currently offline Jörg Thönnes
Messages: 229
Registered: July 2009
Senior Member
On 10/15/09 13:51, Igor Burilo wrote:
>> It would be great if it was possible to select the revision in one of its
>> files' history and have a "Get previous contents" menu item.
> There's already such a functionality in Subversive: call Show History from
> your working copy (it's important to NOT call Show History from repository
> because in that case there will not be relation between history and local
> project), then right-click needed revision or resource and you will find
> "Get Content" action.

Hello Igor,

does this do a reverse merge? Or is there another way to do so? I would always prefer a reversed
merge because this clearly indicates your intention: just reverting without further changes.

Cheers, Jörg

>
>> Hi,
>>
>> I just had the problem that I committed several files in one revision,
>> and now I want to undo that commit. What would be the easiest way of
>> doing this using subversive?
>>
>> It would be great if it was possible to select the revision in one of
>> its files' history and have a "Get previous contents" menu item. Then a
>> dialog should ask whether you want to get the previous contents only for
>> the single file you were looking at, or for all of the revision's
>> affected files.
>>
>> Or did I not see the obvious here somewhere?
>>
>> Regards,
>> Jörg
>
>
Re: How to revert a revision? [message #491848 is a reply to message #491727] Fri, 16 October 2009 03:59 Go to previous message
Igor Burilo is currently offline Igor Burilo
Messages: 435
Registered: July 2009
Senior Member
Hello Jorg,

If you need to 'revert' your changes I'd advice you to use reversed merge in
compare to 'Get Content' action. Reversed merge is like an ordinary merge
operation, it takes into account history of resources. 'Get Content' action
for directory performs an export, for file - get content.
So if you need to simply get content of resource on certain revision you can
use Get Gontent action; otherwise you should use reversed merge.

> On 10/15/09 13:51, Igor Burilo wrote:
>>> It would be great if it was possible to select the revision in one of
>>> its
>>> files' history and have a "Get previous contents" menu item.
>> There's already such a functionality in Subversive: call Show History
>> from
>> your working copy (it's important to NOT call Show History from
>> repository
>> because in that case there will not be relation between history and local
>> project), then right-click needed revision or resource and you will find
>> "Get Content" action.
>
> Hello Igor,
>
> does this do a reverse merge? Or is there another way to do so? I would
> always prefer a reversed
> merge because this clearly indicates your intention: just reverting
> without further changes.
>
> Cheers, Jorg
>
>>
>>> Hi,
>>>
>>> I just had the problem that I committed several files in one revision,
>>> and now I want to undo that commit. What would be the easiest way of
>>> doing this using subversive?
>>>
>>> It would be great if it was possible to select the revision in one of
>>> its files' history and have a "Get previous contents" menu item. Then a
>>> dialog should ask whether you want to get the previous contents only for
>>> the single file you were looking at, or for all of the revision's
>>> affected files.
>>>
>>> Or did I not see the obvious here somewhere?
>>>
>>> Regards,
>>> Jorg
>>
>>
Previous Topic:Integrate ImportFromSVNWizard into RCP?
Next Topic:Commit says dir is not part of commit, but it is
Goto Forum:
  


Current Time: Sat Aug 30 00:26:10 EDT 2014

Powered by FUDForum. Page generated in 0.13288 seconds