[darcs-users] suggestion: each push should identify its target repo internally

Zack Brown zbrown at tumblerings.org
Mon Aug 11 17:53:44 UTC 2003


On Mon, Aug 11, 2003 at 09:53:38AM -0400, David Roundy wrote:
> On Sun, Aug 10, 2003 at 09:12:25AM -0700, Zack Brown wrote:
> > Maybe something like:
> > 
> > Subject: [PUSH] name of the patch
> > DarcsRepository: repo name
> 
> I've added a
> 
> DarcsURL: http://full.path.to/repository
> 
> which contains whatever URL you used when doing the push.

Excellent! So how about this in the procmailrc file:

:0:
* ^DarcsURL:\/.*
| darcs apply --ignore-times -V $HOME/.gnupg/allowed_keys $MATCH

if that works, then creating a pushable repository involves using this recipe,
installing gnupg, and just adding keys to "allowed_keys". No need for
darcs-patcher anymore.

(BTW I just assumed 'darcs apply' takes the full email of the push from
standard input. Is that right?  the docs weren't clear...)

>  This isn't
> necesarily going to be unique, so I may later add a DarcsRepository line
> which could be configured.

I'm not following here. DarcsURL contains a full URL. Isn't there only
one possible repository that can match that URL?

>  Giving a reasonable subject is still on the
> TODO list.  It's a bit tricky because there could be many patches in the
> push.  Probably I'll also want to allow the user to specify the subject
> line, so they could say something like "lots of little bugfixes".

It would be cool if 'darcs apply' also had -t and -cc arguments, so mailing
lists and whatnot could be informed when a push was actually accepted. If
you do this, maybe use the message-id of the push in the references header
of the new mail, so the acceptance would be in the same thread as the push.

In that case, the -t and -cc values of the 'apply' will often be very
similar to the 'push'. The only likely difference would be the fact that
the person who sent the push would want to receive the reply as well,
and the person sending the reply won't need to receive it.

Maybe 'darcs apply' could have a special argument to handle all that at
once, maybe a '-r' (for reply) could do that address duplication and
adjustment.

Be well,
Zack

> -- 
> David Roundy
> http://www.abridgegame.org
> 
> _______________________________________________
> darcs-users mailing list
> darcs-users at abridgegame.org
> http://www.abridgegame.org/mailman/listinfo/darcs-users

-- 
Zack Brown




More information about the darcs-users mailing list