package hgvcs

Import Path
	go.pact.im/x/goship/internal/vcs/hgvcs (on go.dev)

Dependency Relation
	imports 10 packages, and imported by 2 packages

Involved Source Files Package hgvcs implements the vcs.VCS interface using the Mercurial (hg) CLI with isolated temporary clones and batched .hgtags commits. repo.go session.go
Package-Level Type Names (total 4, in which 2 are exported)
/* sort exporteds by: | */
Config holds Mercurial-specific options decoded from goship.json’s "vcs" object. Program overrides the hg executable name or path passed to exec.LookPath (default "hg"). TagCommitMessage is the commit message used for the single batched .hgtags commit created during Publish. func Open(ctx context.Context, dir string, cfg Config) (vcs.VCS, error) func Opener(cfg Config) vcs.Opener
Repo implements vcs.VCS for a Mercurial repository. Begin creates an isolated temporary Mercurial clone updated to rev.ID. ChangedFiles returns repo-relative slash paths changed between baseRev and targetRev under dir. Export extracts the tracked tree at rev into destDir using a single "hg archive" invocation. ListFiles returns all tracked files at rev under dir. Name returns "hg". Push pushes commits and tags to remote (empty uses Mercurial’s "default"). PushHint formats an hg push command hint. ReadFile returns the contents of slashPath at rev. ResolveRev resolves rev ("" defaults to "."). Root returns the absolute path to the repository root. Tags returns all non-synthetic tags in the repository (excluding "tip"). *Repo : go.pact.im/x/goship/internal/vcs.Exporter *Repo : go.pact.im/x/goship/internal/vcs.VCS
Package-Level Functions (total 5, in which 2 are exported)
Open locates the Mercurial repository containing dir.
Opener returns a vcs.Opener for the Mercurial backend using cfg.
Package-Level Constants (total 5, in which 1 is exported)
Name is the backend identifier for Mercurial.