darcs

Issue 139 wish: banned patches

Title wish: banned patches
Priority feature Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, galbolle, jch, kapheine, kowey, markstos, thorkilnaur, tommy, tuomov
Assigned To
Topics

Created on 2006-02-28.11:26:10 by tuomov1, last changed 2009-10-24.00:40:58 by admin.

Messages
msg509 (view) Author: tuomov Date: 2006-02-28.11:26:09
Sometimes it would be nice to be able to "ban" certain patches from
upstream. That is, 'pull' shouldn't ask for banned patches to be pulled
(or pull them with -a) unless they have newer dependencies. The obvious
interface to do this banning is a new option to the pull query.
msg521 (view) Author: kapheine Date: 2006-02-28.14:42:36
> Sometimes it would be nice to be able to "ban" certain patches from
> upstream. That is, 'pull' shouldn't ask for banned patches to be pulled
> (or pull them with -a) unless they have newer dependencies. The obvious
> interface to do this banning is a new option to the pull query.

This is the same as http://otherbugs.darcs.net/index.html?q=37 but
it's not a bad idea to
have a version in the new bugtracker.

I did create an initial patch for this a while back, but it needs a lot of work.
msg531 (view) Author: jch Date: 2006-03-01.14:21:36
> Sometimes it would be nice to be able to "ban" certain patches from
> upstream. That is, 'pull' shouldn't ask for banned patches to be pulled
> (or pull them with -a) unless they have newer dependencies. The obvious
> interface to do this banning is a new option to the pull query.

Should bans/refusals propagate?

In other words: if you ban a given patch, and I pull from you, do I
automatically get to ban that patch?

                                        Juliusz
msg532 (view) Author: kapheine Date: 2006-03-01.14:47:07
> > Sometimes it would be nice to be able to "ban" certain patches from
> > upstream. That is, 'pull' shouldn't ask for banned patches to be pulled
> > (or pull them with -a) unless they have newer dependencies. The obvious
> > interface to do this banning is a new option to the pull query.
>
> Should bans/refusals propagate?
>
> In other words: if you ban a given patch, and I pull from you, do I
> automatically get to ban that patch?

I think it would be best to always manually add bans.  So I could pull
in a banned patch and then immediate ban it, if I'd like.  I wonder if
the user should be notified that the patch was banned on the other
side, though.  I'm not sure if a user would care that it was banned in
the remote repository.
msg538 (view) Author: jch Date: 2006-03-03.15:59:52
This is an often requested feature.  It will doubtless happen at some point.

Oh, and there's no doubt that patches to do that will be gratefully accepted.
msg599 (view) Author: kowey Date: 2006-04-03.11:36:16
Would a notion of local patches be good enough, or would we need both local
patches and banned patches?

Banned patches: "don't ever pull these patches from the other guy"
Local patches: "don't let anybody pull/get these patches; don't push them either"

Should local patches become a separate feature request?

Incidentally, I suppose if you make patches which depend on local patches, then
they too become local.
msg3144 (view) Author: markstos Date: 2008-02-06.04:38:44
Both "banned" and "local" patches seem interesting to me too, but I haven't
thought through what the implications might be.
msg7026 (view) Author: galbolle Date: 2009-01-09.14:15:44
if we implement local patches, use of amend-record would be made very handy by
having the following:
-make record produce local patches by default
-make record be --no-test by default
-add a bless command which (optionally) runs the tests and makes the patch non-local
-make a commit command which offers to either create a new patch (ie use
record), or amend one of the local patches.
msg7028 (view) Author: markstos Date: 2009-01-09.15:17:24
> if we implement local patches, use of amend-record would be made very handy by
> having the following:
> -make record produce local patches by default
> -make record be --no-test by default
> -add a bless command which (optionally) runs the tests and makes the patch non-local
> -make a commit command which offers to either create a new patch (ie use
> record), or amend one of the local patches.

I'm not yet comfortable with changing the standard darcs flow. I'm
particullary not comfortable with adding a "commit" command, which
people will expect to work like "commit" in CVS, SVN or "git".

For me, a "local" patch remains an uncommon case, so I would prefer
that the interface require something extra to generate one, rather than
make it the default behavior.

    Mark
msg7029 (view) Author: tuomov Date: 2009-01-09.15:38:15
On 2009-01-09 15:17 -0000, Mark Stosberg wrote:
> For me, a "local" patch remains an uncommon case, so I would prefer
> that the interface require something extra to generate one, rather than
> make it the default behavior.

at all, although I presume this is a rarer case. (Uou should probably
just have multiple working copies then, creating new public ones in 
one that doesn't have any "local" patches). A somewhat more common 
case is probably that you don't want to pull some patches from a
public/upstream repository, and don't want to be asked about it
every time you pull something else. So I think the interface should
be an option to the interactive pull interface (and for the other 
case, if supported, push) to ban the patch.
msg7030 (view) Author: tuomov Date: 2009-01-09.16:28:58
Hmm.. the bug tracker or something seems to have dropped the first 
two lines from my comment. (There's a perfectly good saved local copy.)
They should have been:

> There are two ways a patch can be local/banned: for push or for pull.
> From your working copy, you may not want to push particular patches
msg8286 (view) Author: kowey Date: 2009-08-19.10:48:58
Note: I've split the request for local patches off into issue1543.

I claim that this has been resolved actually quite a long time ago by this patch

Sun Feb  4 18:13:01 GMT 2007  Kevin Quick <quick@sparq.org>
  * Added --complement to pull to allow "exclusion" repos

With this you can pull the banned patches into a 'banned' repo and then do

  darcs pull --complement main banned

Feel free to argue that this isn't really what you wanted and re-open :-)

It may need to be an FAQ to be more discoverable.
History
Date User Action Args
2006-02-28 11:26:10tuomov1create
2006-02-28 14:42:37kapheine1setstatus: unread -> unknown
nosy: + kapheine1
messages: + msg521
2006-03-01 14:21:38jchsetnosy: + jch
messages: + msg531
2006-03-01 14:47:09kapheine1setnosy: droundy, jch, tommy, kapheine1, tuomov1
messages: + msg532
2006-03-03 15:59:54jchsetnosy: droundy, jch, tommy, kapheine1, tuomov1
messages: + msg538
2006-04-03 11:36:18koweysetnosy: + kowey
messages: + msg599
2008-02-06 04:38:45markstossetstatus: unknown -> deferred
nosy: + markstos, beschmi
messages: + msg3144
title: Banning patches -> wish: Banned and local patches
2008-05-07 15:27:53droundysetstatus: deferred -> unknown
nosy: + dagit
2009-01-09 14:15:48galbollesetnosy: + dmitry.kurochkin, galbolle, simon, thorkilnaur
messages: + msg7026
2009-01-09 15:17:29markstossetnosy: droundy, jch, tommy, beschmi, kowey, markstos, dagit, kapheine1, tuomov1, simon, thorkilnaur, dmitry.kurochkin, galbolle
messages: + msg7028
2009-01-09 15:38:19tuomov12345setnosy: + tuomov12345
messages: + msg7029
2009-01-09 16:29:04tuomov12345setnosy: droundy, jch, tommy, beschmi, kowey, markstos, dagit, kapheine1, tuomov1, tuomov12345, simon, thorkilnaur, dmitry.kurochkin, galbolle
messages: + msg7030
2009-08-06 17:34:20adminsetnosy: + jast, Serware, darcs-devel, zooko, mornfall, - droundy, jch, kapheine1, tuomov1, tuomov12345, galbolle
2009-08-06 20:49:13adminsetnosy: - beschmi
2009-08-10 21:44:12adminsetnosy: + tuomov1, kapheine1, galbolle, jch, tuomov12345, - darcs-devel, zooko, jast, Serware, mornfall
2009-08-10 23:53:25adminsetnosy: - dagit
2009-08-19 10:49:01koweysetstatus: unknown -> resolved
nosy: jch, tommy, kowey, markstos, kapheine1, tuomov1, tuomov12345, simon, thorkilnaur, dmitry.kurochkin, galbolle
messages: + msg8286
title: wish: Banned and local patches -> wish: banned patches
2009-08-25 17:38:30adminsetnosy: + darcs-devel, - simon
2009-08-27 14:27:56adminsetnosy: jch, tommy, kowey, markstos, darcs-devel, kapheine1, tuomov1, tuomov12345, thorkilnaur, dmitry.kurochkin, galbolle
2009-10-23 22:47:21adminsetnosy: - tuomov1
2009-10-24 00:12:00adminsetnosy: + tuomov1, - tuomov12345
2009-10-24 00:36:01adminsetnosy: + kapheine, - kapheine1
2009-10-24 00:40:58adminsetnosy: + tuomov, - tuomov1