[darcs-users] A dumb question

Eric Y. Kow eric.kow at gmail.com
Sat Nov 11 02:26:27 UTC 2006


Hi,

On Fri, Nov 10, 2006 at 19:01:05 -0500, Ralph Dratman wrote:
> I am new to darcs and now am forced to ask one of these dumb,
> embarrassing questions, to wit, how do I restore an old version of a
> tracked file from the repository, long after many changes have been
> recorded? Like a revert, but older.

You're likely looking for obliterate.  (see
http://en.wikibooks.org/wiki/Understanding_darcs/Undoing_mistakes
perhaps starting with
http://en.wikibooks.org/wiki/Understanding_darcs/Getting_started
)

The good news is that you can back patches out to get back to an older
version of your repository.  Now some potentially bad news: if the
patches you wish to get rid of also affect some innocent bystanders in
addition to the file you want, they too will be brought back to the
older version.  A useful trick for dealing with this would be make a
copy of your repository (darcs get) so you can retrieve the new versions
of the bystanders.

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20061111/c00ae99d/attachment.pgp 


More information about the darcs-users mailing list