mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
05c526a68e
It seems `debugcheckbackup` could get a new kind of error with the latest upstream code: Traceback (most recent call last): File "hg/mercurial/scmutil.py", line 150, in callcatch return func() File "hg/mercurial/dispatch.py", line 292, in _runcatchfunc return _dispatch(req) File "hg/mercurial/dispatch.py", line 896, in _dispatch cmdpats, cmdoptions) File "hg/mercurial/dispatch.py", line 658, in runcommand ret = _runcommand(ui, options, cmd, d) File "hg/mercurial/dispatch.py", line 904, in _runcommand return cmdfunc() File "hg/mercurial/dispatch.py", line 893, in <lambda> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) File "hg/mercurial/util.py", line 1118, in check return func(*args, **kwargs) File "hg/mercurial/extensions.py", line 322, in closure return func(*(args + a), **kw) File "hg/mercurial/util.py", line 1118, in check return func(*args, **kwargs) File "hg/hgext/mq.py", line 3542, in mqcommand return orig(ui, repo, *args, **kwargs) File "hg/mercurial/util.py", line 1118, in check return func(*args, **kwargs) File "fb-hgext/infinitepush/backupcommands.py", line 272, in checkbackup if not _dobackupcheck(bkpstate, ui, repo, dest, **opts): File "fb-hgext/infinitepush/backupcommands.py", line 469, in _dobackupcheck for r in lookupresults: File "hg/mercurial/wireproto.py", line 137, in results next(batchable) File "hg/mercurial/wireproto.py", line 238, in lookup self._abort(error.RepoError(data)) File "hg/mercurial/sshpeer.py", line 235, in _abort raise exception RepoError: 0e1a088ff2825213eaa838a82a842bc186f10dd5 abort: 0e1a088ff2825213eaa838a82a842bc186f10dd5! The error message only contains a commit hash, which is not friendly to be printed out. Therefore make sure we have control about the error message and update the test accordingly. Differential Revision: https://phab.mercurial-scm.org/D485 |
||
---|---|---|
.. | ||
__init__.py | ||
backupcommands.py | ||
bundleparts.py | ||
common.py | ||
fileindexapi.py | ||
indexapi.py | ||
infinitepushcommands.py | ||
README | ||
schema.sql | ||
sqlindexapi.py | ||
store.py |
## What is it? This extension adds ability to save certain pushes to a remote blob store as bundles and to serve commits from remote blob store. The revisions are stored on disk or in everstore. The metadata are stored in sql or on disk. ## Config options infinitepush.branchpattern: pattern to detect a scratchbranch, example 're:scratch/.+' infinitepush.indextype: disk or sql for the metadata infinitepush.reponame: only relevant for sql metadata backend, reponame to put in sql infinitepush.indexpath: only relevant for ondisk metadata backend, the path to store the index on disk. If not set will be under .hg in a folder named filebundlestore infinitepush.storepath: only relevant for ondisk metadata backend, the path to store the bundles. If not set, it will be .hg/filebundlestore