Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/overrides.py @ 35312:67b7e39b441b
largefiles: allow to run 'debugupgraderepo' on repo with largefiles
The extensions wrap the necessary function to ensure the 'largefiles'
requirements won't be dropped.
It is now possible to run `hg debugupgraderepo` on a repository with largefiles.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 07 Dec 2017 01:53:14 +0100 |
parents | 3f3c6d12095d |
children | 576ba8194fa8 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Thu Dec 07 01:51:54 2017 +0100 +++ b/hgext/largefiles/overrides.py Thu Dec 07 01:53:14 2017 +0100 @@ -1470,3 +1470,9 @@ printmessage=False, normallookup=True) return result + +def upgraderequirements(orig, repo): + reqs = orig(repo) + if 'largefiles' in repo.requirements: + reqs.add('largefiles') + return reqs