HgGetter is a Getter implementation that will download a module from a Mercurial repository.
| 17 | // HgGetter is a Getter implementation that will download a module from |
| 18 | // a Mercurial repository. |
| 19 | type HgGetter struct { |
| 20 | |
| 21 | // Timeout sets a deadline which all hg CLI operations should |
| 22 | // complete within. Defaults to zero which means no timeout. |
| 23 | Timeout time.Duration |
| 24 | } |
| 25 | |
| 26 | func (g *HgGetter) Mode(ctx context.Context, _ *url.URL) (Mode, error) { |
| 27 | return ModeDir, nil |
nothing calls this directly
no outgoing calls
no test coverage detected