Search code examples
haskellversion-controldarcs

Revert a single file to previous version with darcs


One of the SVG files of my project became corrupt (I can't open it anymore with my editor). I'd like to revert just this file to a previous version so that I can edit it.

I guess it must be possible to do that with Darcs. I should just apply the inverse of the patches to only one file. But how do I do that? Is there a command to do it?


Solution

  • Is that to the last recorded version? If so, darcs revert will help. Otherwise, try darcs show contents filename -p 'patch-name'.