[darcs-users] [patch303] DRAFT Resolve issue1891: implement darcs revert -o/-O.
Petr Ročkai
bugs at darcs.net
Thu Jul 15 02:03:29 UTC 2010
New submission from Petr RoÄkai <me at mornfall.net>:
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 at mornfall.net>
* DRAFT Resolve issue1891: implement darcs revert -o/-O.
----------
files: draft-resolve-issue1891_-implement-darcs-revert-_o__o_.dpatch, unnamed
messages: 11747
nosy: mornfall
status: needs-review
title: DRAFT Resolve issue1891: implement darcs revert -o/-O.
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch303>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: draft-resolve-issue1891_-implement-darcs-revert-_o__o_.dpatch
Type: text/x-darcs-patch
Size: 94468 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20100715/588d668b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unnamed
Type: application/octet-stream
Size: 5 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20100715/588d668b/attachment-0001.obj>
More information about the darcs-users
mailing list