2

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?

John Smith Optional
  • 22,259
  • 12
  • 43
  • 61

1 Answers1

2

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

Helgi
  • 5,428
  • 1
  • 31
  • 48
kowey
  • 1,211
  • 7
  • 15
  • Thanks! Actually, I made the file from scratch again, since this was not a lot of work. But this is good to know I can do `darcs show content -p 'patch-name'` to output a version of a file. Exactly the command I was looking for. – John Smith Optional May 31 '13 at 08:45