Hello folks,
I've got what seems like a very basic darcs question to which I
somehow cannot find a clear answer online or in the documentation.
Here goes:
I would like to selectively un-do a patch (in part or in whole) from
the *working copy*. I can't figure out an easy way to do this, though.
The use-case is clear -- I want to get rid of a part of a patch,
either permanently or just for testing purposes. Maybe this is
because I decide that I want a file to look like it did a few patches
ago, or maybe I have a patch which I like to juggle back and forth
(for example, a patch that turns on verbose debugging by changing
constants across several files).
Anyhow, I can't figure out a direct way to do this. There's the
rollback command, but that's problematic because it alters the
repository but not the working directory! So to get the working
directory to the state I want, I then need to run 'revert', which can
be a pain if there are other unrecorded changes in the working
directory. Worse, since 'rollback' directly alters the repository, to
undo those changes, one would need to rollback the rollback. Which
darcs doesn't support! (At least 1.0.7, which is what I have.) So to
get rid of the rollback, I have to run 'darcs unrecord', which feels
pretty problematic too...
It's surprising that I need to perform all of these permanent and un-
undoable changes to the *repository* just to get the working copy
into a particular state. I would have thought that a basic
requirement of a version control system is that it's easy to get a
file in the working copy back to a particular version!
So, am I way off-base here? Is there an easy way to do what I want?
Is there a better way to accomplish my general goal in a different
way? Or is this really missing functionality?
Thanks for your time and patience,
Zach Pincus
Program in Biomedical Informatics and Department of Biochemistry
Stanford University School of Medicine
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users