A repository's id when the caller gives none (#494, #502): derived from its
origin the way the server names a repository given by --repo with no
config entry (github.com/acme/billing, or local/<directory name> with no
origin), so the engine's RunRef.source matches the server's id for the
same repository.
When the origin gives no usable id (a path segment that is -, say) the id
is local/<directory name> if that name is a valid local name. Otherwise
this throws RepositoryIdError with core's own words: an engine must never
invent an id the server would refuse, because the two would then disagree
about which repository a run belongs to.
A repository's id when the caller gives none (#494, #502): derived from its origin the way the server names a repository given by
--repowith no config entry (github.com/acme/billing, orlocal/<directory name>with no origin), so the engine'sRunRef.sourcematches the server's id for the same repository.When the origin gives no usable id (a path segment that is
-, say) the id islocal/<directory name>if that name is a valid local name. Otherwise this throwsRepositoryIdErrorwith core's own words: an engine must never invent an id the server would refuse, because the two would then disagree about which repository a run belongs to.