Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In LyX I accidentally clicked 'Version Control' -> 'Revert to Repository Version' as it's just below 'Check In changes' option.

This resulted in loss of all work since last check in, and using 'redo' is not possible. Is it possible to undo a revert like this?

share|improve this question
    
It would very much depend on the version control system that LyX has been set up to work with, but unfortunately it's not likely that you can recover this work. –  Sean Allred Apr 8 '13 at 15:49

1 Answer 1

There is no way to restore your edits, hence the explicit warning by LyX:

enter image description here

As you have observed, LyX clears the undo/redo stack in such case. I was hoping that one of the backup files LyX generates may come as a rescue: Depending on the settings, LyX keeps for each file doc.lyx two backup files:

  • doc.lyx~ is copied from doc.lyx before a Save command, so that it always contains the previous generation and an accidental Save command can be undone.

  • #doc.lyx# is generated by LyX's autosave feature, usually every five minutes.

However, when issuing a Revert to Repository Version, LyX unfortunately deletes #doc.lyx# and overwrites doc.lyx~ as well with the repositry version.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.