GNU bug report logs - #79024
31.0.50; Multiple working trees support for VC

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Tue, 15 Jul 2025 11:51:02 UTC

Severity: normal

Merged with 79104

Found in version 31.0.50

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: dmitry <at> gutov.dev, 79024 <at> debbugs.gnu.org
Subject: bug#79024: 31.0.50; Multiple working trees support for VC
Date: Sat, 16 Aug 2025 12:46:04 +0100
[Message part 1 (text/plain, inline)]
Hello,

On Thu 14 Aug 2025 at 06:10pm +03, Eli Zaretskii wrote:

>> From: Sean Whitton <spwhitton <at> spwhitton.name>
>> Cc: dmitry <at> gutov.dev,  79024 <at> debbugs.gnu.org
>> Date: Thu, 14 Aug 2025 14:43:10 +0100
>>
>> > The vc-test-hg07-other-working-trees test still fails, but in a
>> > different place now:
>> >
>> >   Test vc-test-hg07-other-working-trees condition:
>> >       (error
>> >        "Failed (status 255): hg --config ui.report_untrusted=0 --config=extensions.share= commit -A -l c:/Users/EliZ/AppData/Local/Temp/hg-msgjR8Sup foo")
>> >
>> > Any ideas?
>>
>> Hmm, I recently changed vc-do-command to print command output for
>> failing commands.  I assume there's nothing showing up?
>
> Do you mean this:
>
>   Checking in foo...
>   abort: no username supplied
>   (use 'hg config --edit' to set your username)

Looks like the problem is determining the committer identity.

I think the attached patch will fix this.  I've tested it locally and it
does result in the test commits having the john <at> doe.ee identity.
Could you test it on Windows?  Thanks.

>> I would suggest trying this manually something like this (translated to
>> Windows speak)
>>
>>     mkdir foo
>>     cd foo
>>     hg init
>>     echo foo >bar
>>     hg add bar
>>     echo msg >../tmp
>>     hg --config ui.report_untrusted=0 --config=extensions.share= commit
>>     -A -l ../tmp bar
>
> This works here, and the last command exits with zero status.  Does
> the above really faithfully reproduces what the test does?

It reproduces it in terms of commands but I guess that hg's identity
autodetection works differently from the test's temporary directory than
it does from the more ordinary directory where you tried these commands.

-- 
Sean Whitton
[0001-vc-test-with-author-identity-Handle-Mercurial.patch (text/x-diff, attachment)]

This bug report was last modified 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.