Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 31864:70d163b86316
upgrade: extract code in its own module
Given about 2/3 or 'mercurial.repair' is now about repository upgrade, I think
it is fair to move it into its own module.
An expected benefit is the ability to drop the 'upgrade' prefix of many
functions. This will be done in coming changesets.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 07 Apr 2017 18:53:17 +0200 |
parents | 57a22f699179 |
children | 85dc5a25f1fc |
comparison
equal
deleted
inserted
replaced
31863:cd7aaf344d83 | 31864:70d163b86316 |
---|---|
60 smartset, | 60 smartset, |
61 sslutil, | 61 sslutil, |
62 streamclone, | 62 streamclone, |
63 templater, | 63 templater, |
64 treediscovery, | 64 treediscovery, |
65 upgrade, | |
65 util, | 66 util, |
66 vfs as vfsmod, | 67 vfs as vfsmod, |
67 ) | 68 ) |
68 | 69 |
69 release = lockmod.release | 70 release = lockmod.release |
2070 repository data is swapped in. This window will be as long as it takes to | 2071 repository data is swapped in. This window will be as long as it takes to |
2071 rename some directories inside the ``.hg`` directory. On most machines, this | 2072 rename some directories inside the ``.hg`` directory. On most machines, this |
2072 should complete almost instantaneously and the chances of a consumer being | 2073 should complete almost instantaneously and the chances of a consumer being |
2073 unable to access the repository should be low. | 2074 unable to access the repository should be low. |
2074 """ | 2075 """ |
2075 return repair.upgraderepo(ui, repo, run=run, optimize=optimize) | 2076 return upgrade.upgraderepo(ui, repo, run=run, optimize=optimize) |
2076 | 2077 |
2077 @command('debugwalk', commands.walkopts, _('[OPTION]... [FILE]...'), | 2078 @command('debugwalk', commands.walkopts, _('[OPTION]... [FILE]...'), |
2078 inferrepo=True) | 2079 inferrepo=True) |
2079 def debugwalk(ui, repo, *pats, **opts): | 2080 def debugwalk(ui, repo, *pats, **opts): |
2080 """show how files match on given patterns""" | 2081 """show how files match on given patterns""" |