TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.