get_head_revision
get_head_revision() → Optional[Union[str, Tuple[str, ...]]]
Return the hex identifier of the ‘head’ script revision.
If the script directory has multiple heads, this method raises a CommandError; EnvironmentContext.get_head_revisions() should be preferred.
This function does not require that the MigrationContext has been configured.
See also: