[darcs-users] darcs unapply
Owen Stephens
darcs at owenstephens.co.uk
Mon Mar 26 12:26:27 UTC 2012
On 26 March 2012 13:16, John Lato <jwlato at gmail.com> wrote:
> I find that I often want a command that performs an "unapply" -
> patches are unapplied from the working copy but remain in the local
> repository. Presently I usually get this behavior by either doing
> "darcs obliterate" followed by "darcs pull", or "darcs send -o
> somepatches" then "darcs apply somepatches". Obviously this is
> non-optimal, as I need to check beforehand whether the patch exists
> elsewhere or not.
You can skip some steps in your workflow, by using the -o option of
obliterate
(I've just tested this on a small repo locally):
darcs obliterate -o removed_patches.dpatch
"hack, hack, hack."
darcs apply removed_patches.dpatch
> Is there a command that does this already? If not, would others find
> it useful? It seems like it'd be simple to add.
I'm not sure that this work around is the optimal aproach, it might be nice
if
darcs could somehow help to manage the "unapplied" patches for you (though
I'm
cautious to suggest it should maintain a list of disabled patches)
Owen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20120326/21c4e825/attachment.html>
More information about the darcs-users
mailing list