problems with hooks (diff stat) in Windows

Uwe Brauer oub at mat.ucm.es
Sat Nov 30 17:44:54 UTC 2024


I using successfully the following setting in linux 
[hooks]
changegroup.diffstat=hg diff --stat -r "p1($HG_NODE)" -r "max(descendants($HG_NODE))"
outgoing=hg diff --stat -r "p1($HG_NODE)" -r "max(descendants($HG_NODE))"


With various mercurial versions since several years.

Now a windows user put the same setting in his mercurial.ini file

But then running 
hg fetch (yes fetch not pull)

He received


pulling from https://diegfe03802899@helixteamhub.cloud/broad-rain-1388/projects/tfg-2025/repositories/mercurial/TFG-2025-Pena
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 3 changes to 3 files
new changesets 4915a043abd8
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
hg: parse error at 3: syntax error in revset 'p1($HG_NODE)'
(p1($HG_NODE)
    ^ here)
warning: changegroup.diffstat hook exited with status 255

He is using mercurial 6.3.1 precompiled for Windows

Is this a well known bug?

Uwe Brauer 


-- 
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5684 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20241130/e2076f0c/attachment.p7s>


More information about the Mercurial mailing list