Fix mismatch between origins and head_revs.
The fix in 2354d9bb was buggy, but this was not caught by tests because of another bug, fixed in 795bc1da.
Migrated from D1139 (view on Phabricator)
The fix in 2354d9bb was buggy, but this was not caught by tests because of another bug, fixed in 795bc1da.
Migrated from D1139 (view on Phabricator)