Do not clear log_records of Transaction if it is empty
When the transaction fails to start, the log_records may still be None.
Closes #12793 (closed)
Meet users and developers of Mercurial at the London Sprint, May 27-29th https://mercurial-scm.org/news/2026/0001-london-sprint
When the transaction fails to start, the log_records may still be None.
Closes #12793 (closed)