[darcs-users] Merging several patches into one
Jan Braun
janbraun at gmx.de
Wed Jun 21 02:48:49 UTC 2006
Richard A. Smith schrob:
> Do this 3 times. So now you have 30 new patches pushed out to the repo.
> Other people pull all of them but eventually you think that feature 2
> still has some problems. Sorting out what patches for other to unpull
> can be somewhat confusing. Especially if its been a month since you
> wrote those patches.
If you just want to get rid of the feature, I wouldn't try to make
everyone unpull the patches, but record a new patch called "revert
feature 2" (created by unpulling from a temporary repo, copying the
relevant files into an up-to date repo and recording there).
That way, the others simply 'darcs pull' to remove it, and you don't have
to worry whether a surviving instance of the patches might someday appear
in your repo and cause conflicts or bugs. This might not be aesthetically
pleasing, it will record in the history that you implement bad features,
and you will still have the code if you change your mind once again ;)
If you want "this feature is not ready yet, let's remove it until I've
ironed out the bugs", then I don't think there's a good/easy solution
(except maybe #ifdef).
HTH,
Jan
More information about the darcs-users
mailing list