It's all about the answers!

Ask a question

Revert changes of binary files


Roman Smirak (3164933) | asked Apr 02 '08, 4:02 a.m.
Hi,

I have found how to revert changes when it comes to txt files; however,
I don't know how to revert changes of binary files.

Any advice?

Regards,

Roman

4 answers



permanent link
Christophe Cornu (47123) | answered Apr 02 '08, 11:10 a.m.
If you see the change in the pending changes view, select it and 'Undo' - as you would do for a text change.

Otherwise, right click on the file from wherever you see it (e.g. from the package explorer) > Team > Show History.
Then it is likely you want to select the most recent change for that file and 'discard'. That will return your file to the state it was in before that change.

If that doesn't help, please provide more details :-)

permanent link
Geoffrey Clemm (30.1k33035) | answered Apr 02 '08, 10:52 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
It looks like "reverse" is trying to create a "patch" to apply to the
version to return it to its previous state, instead of just taking the
previous state and making it be the latest state (just speculating here
.... Chris can confirm). And I'm assuming Roman doesn't want to just
"discard" the change set, because he wants to deliver to the team stream
the fact that he's backing out the change (which "reverse" would do, but
"discard" does not).

Cheers,
Geoff

Roman Smirak wrote:
Ok, I followed the guideline Reversing a change set (Managing change and
releases > Managing source code in Jazz > Using Jazz source control for
Eclipse > Working in a Jazz source control workspace > Working with projects
under Jazz source control > Creating and managing change sets).

I needed to revert a change set containing changes of binary (ms word)
files. When I click on Reverse action over the change set I get following
message - see enclosed file.

It says: Only certain file types may be patched...

Well I need to revert changes of MS Word files - how to do it?

Regards,

Roman

"chrisx" <not.yet@jazz-dot-net.no-spam.invalid> wrote in message
news:ft0837$ugu$1@localhost.localdomain...
If you see the change in the pending changes view, select it and
'Undo' - as you would do for a text change.

Otherwise, right click on the file from wherever you see it (e.g. from
the package explorer) > Team > Show History.
Then it is likely you want to select the most recent change for that
file and 'discard'. That will return your file to the state it was in
before that change.

If that doesn't help, please provide more details :-)



permanent link
Jean-Michel Lemieux (2.5k11) | answered Apr 02 '08, 11:10 p.m.
JAZZ DEVELOPER
We will be fixing this for 1.0. You will be able to reverse or load the binary files from a change-set shown in the Change Explorer.

https://jazz.net/jazz/web/projects/Jazz%20Project#action=com.ibm.team.workitem.viewWorkItem&id=49748

permanent link
Christophe Cornu (47123) | answered Apr 03 '08, 9:17 a.m.
In case you are still looking for a workaround:

Select the file (package explorer, etc.) > Team > Show History
Then select the row that represents the version you want to return to. Right click > load. You now have an outgoing change-set with a change that brings back that particular version.

Bizarre - Roman apparently replied to my earlier post but I don't see it in the web ui. I only see Geoff's post quoting Roman's answer.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.