HomePhabricator

engine: refactor actual cloning code into separate function

Authored by pulkit.

Description

engine: refactor actual cloning code into separate function

The for ... under which this cloning code exists is too complicated and based
on certain assumptions. I am going to refactor it in next patches and make it
bit saner.

Differential Revision: https://phab.mercurial-scm.org/D9579