Hi,
this is a draft implementation of revert -o/-O. This should work reasonably
well, with two caveats (and both are probably good reasons to defer this
patch):
1) The bundle is written out with current repository context: this means that
obliterating local patches will render it unapplicable. (There would be
identical problem with naive stash implementation... stash would probably need
to add logic to obliterate and amend-record (and eventually rebase) which would
commute down all stashed patches. Either that, or just refuse to work if
something is stashed. How git-like...)
2) Applying the patch to working (and working only) is not supported by darcs
apply. Having something like darcs apply --working would help, presumably. The
current hint about apply + unrecord/amend may be workable, but not great.
The problem 1) may be an argument for real stash, although personally I'd much
prefer in-repo branching and stashing based on that. Also, with existing darcs
code, doing "real" stash may be pretty complex.
Yours,
Petr.
1 patch for repository http://darcs.net/:
Thu Jul 15 03:55:07 CEST 2010 Petr Rockai <me@mornfall.net>
* DRAFT Resolve issue1891: implement darcs revert -o/-O.
Attachments
|