-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

So tonight I was discussing Lemmih's LHC fork of JHC with him, when I
mentioned it'd be nice if his repository (at ) had a default address
for 'darcs send' to use, since I find it terribly tedious to copy the
maintainer address from lhc.cabal or to actually type in
'[EMAIL PROTECTED]'.

He asked how. I discovered I had forgotten.

The manual says:

"The _darcs/prefs/email file is used to provide the e-mail address for
your repository that others will use when they darcs send a patch back
to you. The contents of the file should simply be an e-mail address."

First I tried to do 'darcs setpref email [EMAIL PROTECTED]'. This
seemed reasonable to me - 'darcs help setpref' doesn't actually list
all the possible options*, so I optimistically tried it.

That didn't work. Eventually I just told Lemmih to ssh to
community.haskell.org and manually create the file.

So, this leads me to my point: why not make email a setpref'able
option? This has other benefits than being more straightforward and
consistent: if it's a pref patch like the others, then it is pullable.
To continue my example: once Lemmih manually added the email file, I
went to my existing lhc repo and pulled. This did not pull in the
email file. Apparently that is only included if the command is a
'get'. (I do not intend to darcs get lhc again, as it's a 2k patches
darcs-1 repo on code.h.o == very slow.)

* Incidentally, does it strike anyone else as silly to have the help
say 'Set a value for a preference (test, predist, ...).'? Why not just
list all the preferences? There aren't that many, and it would
certainly make that help much more useful.

- --
gwern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkkqJ6AACgkQvpDo5Pfl1oJPggCeKxwRel8f12GwEGC1/V07iuQH
CW4AoIb4uuX+pvjmbjzIHfNB6SMJaSMi
=KMtx
-----END PGP SIGNATURE-----
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to