[go] cmd/go: implement accurate pseudo-versions for Mercurial

1 view
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Nov 11, 2025, 10:26:37 AM (yesterday) Nov 11
to Russ Cox, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Go LUCI, Michael Matloob, Michael Matloob, Ian Alexander, Michael Pratt, golang-co...@googlegroups.com

Gopher Robot submitted the change

Unreviewed changes

4 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
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-by: Michael Matloob <mat...@golang.org>
Reviewed-by: Michael Matloob <mat...@google.com>
Auto-Submit: Russ Cox <r...@golang.org>
Files:
  • M src/cmd/go/internal/modfetch/codehost/git.go
  • M src/cmd/go/internal/modfetch/codehost/vcs.go
  • M src/cmd/go/testdata/script/mod_get_pseudo.txt
  • A src/cmd/go/testdata/script/mod_get_pseudo_hg.txt
  • M src/cmd/go/testdata/script/reuse_hg.txt
  • A src/cmd/go/testdata/vcstest/git/legacytest.txt
  • A src/cmd/go/testdata/vcstest/hg/legacytest.txt
Change size: L
Delta: 7 files changed, 407 insertions(+), 44 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Michael Matloob, +2 by Michael Matloob
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I28f448a19143f7ce3de337cd1891bae86023b499
Gerrit-Change-Number: 718502
Gerrit-PatchSet: 6
Gerrit-Owner: Russ Cox <r...@golang.org>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Ian Alexander <ji...@google.com>
Gerrit-Reviewer: Michael Matloob <mat...@golang.org>
Gerrit-Reviewer: Michael Matloob <mat...@google.com>
Gerrit-Reviewer: Russ Cox <r...@golang.org>
Gerrit-CC: Michael Pratt <mpr...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages