Skip to main content

Class: HgActorResolver

Defined in: packages/core/src/infrastructure/hg/actor-resolver.ts:12

Mercurial-based implementation of ActorResolver.

Reads the ui.username configuration which is typically in the format Name <email>. Falls back to the raw value as name with an empty email when the format does not match.

Implements

Constructors

Constructor

new HgActorResolver(cwd?): HgActorResolver

Defined in: packages/core/src/infrastructure/hg/actor-resolver.ts:20

Creates a new HgActorResolver.

Parameters

cwd?

string = ...

Working directory for hg commands; defaults to process.cwd()

Returns

HgActorResolver

Methods

identity()

identity(): Promise<ActorIdentity>

Defined in: packages/core/src/infrastructure/hg/actor-resolver.ts:25

Returns the identity of the current actor.

Returns

Promise<ActorIdentity>

The actor's name and email

Throws

When the identity cannot be determined

Implementation of

ActorResolver.identity