On Thu, May 16, 2013 at 8:07 AM, Jed Brown <
j...@59a2.org> wrote:
> Felipe Contreras <
felipe.c...@gmail.com> writes:
>
>>> So which is it? You want the environment to interact with gitifyhg or
>>> you want to shield the test from all aspects of the environment?
>>
>> I never said I wanted any of those things. I'm telling reasons why you
>> want to apply this patch. One way or the other setting up an empty
>> HGRCPATH doesn't make sense.
>
> Your preamble said:
>
> I'm mainly interested in the first one, because it's clearly breaking
> Mercurial because the .hgrc is not parsed.
Let me explain to you the meaning of words.
When I say I'm *interested* in a patch I'm saying I'm interested in
getting the patch applied. When I say I never *wanted* any of those
things, I'm talking about the advantages this patch brings:
1) In the modified version where HGRCPATH="$HOME/.hgrc", it helps to
you guys so you can implement ui.username() properly.
2) In the original version where HGRCPATH is unset, it helps to you
guys to test that unsetting HGRCPATH does indeed work in gitifyhg.py.
In addition to 1)
I don't *want* any of those things, I don't care at all. All I care is
that the patch is applied. These are reasons for *you* to apply it,
and they are good reasons, whichever you pick, but which reason you
pick doesn't interest me in the least.
Do you understand? I don't see how I could be any clearer.
> The commit message for 1/6 did not didn't provide any more information.
> When asked, you demonstrated how 'hg showconfig' within a test did not
> parse $HOME/.hgrc, but no tests try to do this. Elsewhere in the
> thread, you said that you think gitifyhg _should_ obtain configuration
> using Hg semantics, which I agree with due to keyring and schemes.
>
> The testing environment has no use for keyring or schemes, but your
> argument was that the environment should still interact with gitifyhg,
> if only to expose any presently-unknown bad influence on the behavior of
> the interfaces that gitifyhg uses. I think that is also a cogent
> argument, but the environment seen by the hg command must still be
> controlled due to aliases (and maybe other) valid local configuration.
>
> I suggested a way to isolote *only* the hg command, which is compatible
> with your rationale for allowing the user's HGRCPATH to propagate into
> the test suite.
I gave you crystal clear commands and reasoning, not one, but two. And
if you can't see why they are good reason to apply this patch, I don't
know how else to say it, but you are an idiot.
> Are you now saying that none of those things matter, and we should set
> HGRCPATH=$HOME/.hgrc (or 'unset HGRCPATH')?
Where did I say none of those things matter? I say they don't matter
*TO ME*, because I don't care about gitifyhg. They should matter to
you.
> In that case, would this
> change not be purely cosmetic: $HOME/.hgrc is only intended to be read
> by gitifyhg, which does not currently pay attention to HGRCPATH (you
> think this should be changed), and make_hg_commit uses --user, so it
> doesn't need $HOME/.hgrc either?
make_hg_commit() is completely orthogonal to this patch. Stop
confounding it even more. You seem to have trouble following two
reasons, let's not add more.
> Note that if we isolate _only_ the hg command, issue #77 will have to be
> resolved before gitifyhg clears HGRCPATH from its environment,
We are not talking about that. The topic is "[PATCH 1/6] test: remove
empty HGRCPATH".
> and
> test_push_tags should clear/set HGRCPATH when testing the fallback in
> case of no Git configuration.
HGRCPATH should never be empty in the testing framework. To do
anything else is an exercise in futility.
>>> This
>>> sentence in the original commit message would have made the intent
>>> clear:
>>>
>>> Setting HGRCPATH='' prevents hg from reading $HOME/.hgrc, which we
>>> intend to be read in order to obtain ui.username.
>>
>> That is not the intention, and that description is not true. Nobody
>> prevents you from reading ~/.hgrc, in fact, you are doing so right
>> now.
>
> And you claim that gitifyhg reading it manually is a bug, but couldn't
> be bothered to finish the job.
I don't care about gitifyhg.
> It still seems to me that they should
> come as a pair, because this commit has dubious value on its own.
No. I already demonstrates beyond reasonable doubt the advantages this
patch brings to you. And the fact that you don't see it only shines a
light into your mental capacities.
> The
> version that isolates only the hg executable would be more attractive on
> its own, but would still be better paired with removal of HGRCPATH from
> gitifyhg.
It's a waste of time discussing with you. I have productive things to
do, I don't have time to discuss ad nauseam an obvious trivial fix
that can't possible affect negatively anybody in a project that
doesn't dedicate even 1% of this time to review 99% of the patches
that get applied, and is destined for oblivion.
Bye.
--
Felipe Contreras