comparison mercurial/cmdutil.py @ 40514:6f0b6905ef6f

shallowutil: introduce a helper function isenabled() This patch introduces a inenabled() function which will check whether remotefilelog is enabled or not. The function is then also used at all the places where check whether remotefilelog is enabled or not. The new function makes code easy to read without need to understand what is the constant involved and why we are checking repo.requirements. Differential Revision: https://phab.mercurial-scm.org/D5190
author Pulkit Goyal <pulkit@yandex-team.ru>
date Mon, 05 Nov 2018 11:52:10 -0800
parents 824b687ff6af
children 69268a13ffa5
comparison
equal deleted inserted replaced
40513:525dcf5c1d41 40514:6f0b6905ef6f