support both log and log|history]

Reviewed By: MichaelCuevas

Differential Revision: D41298269

fbshipit-source-id: 41cd2f1eedaa232fef5f9b36ddcaa6b0348ecddb
This commit is contained in:
Michael Bolin 2022-11-15 00:17:42 -08:00 committed by Facebook GitHub Bot
parent d20daa1255
commit ad1cbb142f

View File

@ -470,7 +470,10 @@ def _setupcommit(ui) -> None:
def _setuplog(ui) -> None:
entry = commands.table["log|history"]
entry = commands.table.get("log", None)
if entry is None:
# Try command with legacy alias.
entry = commands.table["log|history"]
entry[1].append(
("", "sparse", None, "limit to changesets affecting the sparse checkout")
)