[darcs-devel] [issue1405] Suggestion: remind user of DARCS_EMAIL
Trent Buck
bugs at darcs.net
Tue Mar 24 22:29:52 UTC 2009
Trent Buck <trentbuck at gmail.com> added the comment:
On Tue, Mar 24, 2009 at 05:27:27PM -0000, Kevin Quick wrote:
>
> Kevin Quick <quick at sparq.org> added the comment:
>
> Quoting Max Battcher <me at worldmaker.net>:
>
> > On Mon, Mar 23, 2009 at 7:50 PM, Trent Buck <bugs at darcs.net> wrote:
> > > I strongly feel that this prompt should write ~/.darcs/author, *not*
> > > _darcs/prefs/author. I think it is far more likely that two users will
> > > share a repo (in which case _darcs is wrong) than that two users will
> > > share a $HOME.
> >
> > +1.
>
> -1 for me.
>
> I disagree that two users will share a repo: each user should have their own
> clone of the repo and work there, otherwise they have conflicts editing the
> same files, running simultaneous builds, and all sorts of other non-
> deterministic behavior. Darcs is a distributed SCM after all...
But someone who has never used Darcs before, and thus has never set
$DARCS_EMAIL, $EMAIL, _darcs/prefs/author nor ~/.darcs/author, will
not know that.
> The second reason is that the user may want different author ids for different
> repos. For example, I use darcs at work and darcs for personal stuff: I use a
> different author for both of these.
The proposed change will not prevent this. It merely means that you,
the knowledgable darcs user, will need to use that knowledge to do
echo $OTHEREMAIL >_darcs/prefs/author
instead of requiring a *new* user, who doesn't know what they're doing, to do
echo $EMAIL >~/.darcs/author
> I think it's good to use:
> 1. _darcs/prefs/author
> 2. DARCS_EMAIL
> 3. ~/.darcs/author
> 4. EMAIL
>
> in that order, but if none of the above are set, the darcs prompt should set
> _darcs/prefs/author.
It's this last point we're discussing, and I guess we disagree on that.
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1405>
__________________________________
More information about the darcs-devel
mailing list