Joachim Breitner

A shelf for darcs

Published 2007-05-01 in sections English, Digital World, Darcs.

I recently did my first experiments with darcs: A friend of mine and I hacked on the same code, and by giving each other access to one’s darcs repository, we could easily exchange our new code.

One problem I had was that my friend recorded a patch that I did not want applied in my repository. Nothing else depended on it, so I could just say no everytime I use “darcs pull”, but it’s still a hassle. Also, imagine that I’m somewhere else and I suddently decide that I do want the patch?

A similar problem would be if I created some patches that I temporarily don’t want applied. I could branch, and then unpull them, but this is a bit too much work.

In both cases a “patch shelve” would be handy. A seperate storage for patches in my repository that are available, but not applied. I’d imagine that the “darcs pull” command would then allow me to “pull and put on the shelf”, and not offer me this patch again. There would also be “put on shelf” and “get from shelf” commands. So if anyone feels like hacking on darcs, this feature would be appreciated.

Also filed as a withlist bug.

Comments

So true! As a darcs user I have to say that I'm really missing this feature.

There is a partial workaround however: You can pull patches by pattern. With a special naming scheme for patches this is barely usable.

Also when sending or pushing patches it would be cool not to be asked for some patches like local config changes.
#1 Helmut Grohne am 2007-05-01
Yes! I want this feature!
#2 Titus Brown am 2007-05-01

Have something to say? You can post a comment by sending an e-Mail to me at <mail@joachim-breitner.de>, and I will include it here.