[darcs-users] updating the wiki with a darcs push?

Ivan Zakharyaschev imz at altlinux.org
Fri Jun 21 12:57:23 UTC 2013


Hi,

2013/6/21, Ganesh Sittampalam <ganesh at earth.li>:

> In darcs, an anonymous push is a "send" - i.e. use "darcs send", which
> because of the configuration of the wiki repo, should default to sending
> the change to patches at darcs.net where someone can check and apply them.
>
> The extra security over just being able to edit the wiki directly online
> is because there are more things you can do with direct repo access.

I see. Thanks for the explanation!

After reading the manual some time ago, I had the impression that
"darcs push" will somehow fallback to "darcs send" in such cases.
That's not true, is it? I have to use explicitly the "send" command,
haven't I?

> This does rely on having a working email setup locally, which is
> becoming a bit less common with the move to gmail etc. We're looking at
> adding general support for submitting patches over http instead, but
> it's not all there yet.

As for me, I feel that it's my problem to figure out how to send the
patches. So, I've received the answer that there is a way to submit
changes to the wiki from the local clone.

> If you don't have a working local email setup, the workaround is to use
> darcs send -o filename.dpatch and then manually send the file to
> patches at darcs.net.

Should it be in the message body or an attachment?

I have run "darcs send --dry-run" in my local clone of darcs-wiki to
figure out which address the patches must be sent to, and actually the
address is darcs-users at darcs.net (not the one you quoted):

[imz at localhost darcs-wiki]$ darcs send --dry-run
Creating patch to "http://darcs.net/darcs-wiki"...
Patch bundle would be sent to: darcs-users at darcs.net
Would send the following changes:
Wed Jun 19 01:51:50 MSK 2013  Ivan Zakharyaschev <imz at altlinux.org>
  * tip: Invoking Emacs functions as external merge/diff tools.

  Preparing the args for an Emacs function in a shell script (as it is
done in the manual) is ugly. Here I show how do it with Elisp code.

Making no changes:  this is a dry run.
[imz at localhost darcs-wiki]$ fgrep darcs-users -r _darcs/
[imz at localhost darcs-wiki]$

(Probably, it gets this information from the web, because grepping the
local _darcs/ hasn't revealed that it is stored locally.)

Ok, I was worried that choosing this path for submitting changes to
the wiki would require additional attention of a reviewer, which means
more unnecessary human work, because the changes done through the web
interface are anyway accepted automatically.

Are the patches for darcs-wiki sent to darcs-users@ processed
automatically somehow?

Best wishes,
-- 
Ivan


More information about the darcs-users mailing list