]> Cypherpunks repositories - gostls13.git/commit
cmd/go: implement accurate pseudo-versions for Mercurial
authorRuss Cox <rsc@golang.org>
Thu, 6 Nov 2025 18:55:25 +0000 (13:55 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 11 Nov 2025 15:26:31 +0000 (07:26 -0800)
commit2750f9529148d21c5e29cb325acccc6240e813cf
tree40a8f20aad7238b965f2ddebe6fda7a57017fcab
parentb709a3e8b425ed2f2d3bbd508e7f20d640ed99e8
cmd/go: implement accurate pseudo-versions for Mercurial

This is CL 124515 (which only did Git) but for Mercurial,
quite a few years late. I'm not sure why we didn't do it
at the time - probably Mercurial blindness. Do it now.

Change-Id: I28f448a19143f7ce3de337cd1891bae86023b499
Reviewed-on: https://go-review.googlesource.com/c/go/+/718502
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Michael Matloob <matloob@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/modfetch/codehost/git.go
src/cmd/go/internal/modfetch/codehost/vcs.go
src/cmd/go/testdata/script/mod_get_pseudo.txt
src/cmd/go/testdata/script/mod_get_pseudo_hg.txt [new file with mode: 0644]
src/cmd/go/testdata/script/reuse_hg.txt
src/cmd/go/testdata/vcstest/git/legacytest.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/hg/legacytest.txt [new file with mode: 0644]