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.