Mercurial > public > mercurial-scm > hg-stable
diff hgext/lfs/wrapper.py @ 46219:481d9aed669c
engine: make hook point for extension a public function
Well there are no private public functions in Python, but we generally treat
functions and variables starting with `_` as private ones.
A function which needs to be overrided in extension should be a public one.
Differential Revision: https://phab.mercurial-scm.org/D9672
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 31 Dec 2020 14:10:25 +0530 |
parents | 4b89cf08d8dc |
children | 3d740058b467 |
line wrap: on
line diff
--- a/hgext/lfs/wrapper.py Wed Dec 30 16:39:35 2020 +0530 +++ b/hgext/lfs/wrapper.py Thu Dec 31 14:10:25 2020 +0530 @@ -524,7 +524,7 @@ remoteblob.writebatch(pointers, repo.svfs.lfslocalblobstore) -@eh.wrapfunction(upgrade_engine, b'_finishdatamigration') +@eh.wrapfunction(upgrade_engine, b'finishdatamigration') def upgradefinishdatamigration(orig, ui, srcrepo, dstrepo, requirements): orig(ui, srcrepo, dstrepo, requirements)