--- /hgwork/src/tests/test-bookmarks-corner-case.t
+++ /hgwork/src/tests/test-bookmarks-corner-case.t.err
@@ -201,7 +201,6 @@
pushing to ssh://user@dummy/bookrace-server
searching for changes
remote: setting raced push up
- remote has heads on branch 'default' that are not known locally: f26c3b5167d1
remote: adding changesets
remote: adding manifests
remote: adding file changes
@@ -220,7 +219,6 @@
| summary: A1
|
| o changeset: 3:f26c3b5167d1
- | | bookmark: book-B
| | user: test
| | date: Thu Jan 01 00:00:00 1970 +0000
| | summary: B1
@@ -243,4 +241,3 @@
$ hg -R bookrace-server book
book-A 4:9ce3b28c16de
- book-B 3:f26c3b5167d1
test-byteify-strings.t
--- /hgwork/src/tests/test-byteify-strings.t
+++ /hgwork/src/tests/test-byteify-strings.t.err
@@ -16,8 +16,23 @@
> mydict.iteritems()
> EOF
$ byteify_strings testfile.py -i
+ Traceback (most recent call last):
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 345, in <module>
+ main()
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 334, in main
+ process(fin, fout, opts)
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 264, in process
+ fout.write(tokenize.untokenize(tokens))
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 338, in untokenize
+ out = ut.untokenize(iterable)
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 247, in untokenize
+ for t in it:
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 161, in replacetokens
+ if t.type == token.COMMENT:
+ AttributeError: module 'token' has no attribute 'COMMENT'
+ [1]
$ cat testfile.py
- obj[b'test'] = b"1234"
+ obj['test'] = b"1234"
mydict.iteritems()
Test with dictiter
@@ -27,8 +42,21 @@
> mydict.iteritems()
> EOF
$ byteify_strings testfile.py --dictiter
- obj[b'test'] = b"1234"
- mydict.items()
+ Traceback (most recent call last):
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 345, in <module>
+ main()
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 338, in main
+ process(fin, fout, opts)
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 264, in process
+ fout.write(tokenize.untokenize(tokens))
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 338, in untokenize
+ out = ut.untokenize(iterable)
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 247, in untokenize
+ for t in it:
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 161, in replacetokens
+ if t.type == token.COMMENT:
+ AttributeError: module 'token' has no attribute 'COMMENT'
+ [1]
Test kwargs-like objects
@@ -64,35 +92,21 @@
> commitopts.setdefault('test', 'testing')
> EOF
$ byteify_strings testfile.py --treat-as-kwargs kwargs opts commitopts
- kwargs['test'] = b"123"
- kwargs[test[b'testing']]
- kwargs[test[[[b'testing']]]]
- kwargs[kwargs['testing']]
- kwargs.get('test')
- kwargs.pop('test')
- kwargs.get('test', b'testing')
- kwargs.pop('test', b'testing')
- kwargs.setdefault('test', b'testing')
-
- opts['test'] = b"123"
- opts[test[b'testing']]
- opts[test[[[b'testing']]]]
- opts[opts['testing']]
- opts.get('test')
- opts.pop('test')
- opts.get('test', b'testing')
- opts.pop('test', b'testing')
- opts.setdefault('test', b'testing')
-
- commitopts['test'] = b"123"
- commitopts[test[b'testing']]
- commitopts[test[[[b'testing']]]]
- commitopts[commitopts['testing']]
- commitopts.get('test')
- commitopts.pop('test')
- commitopts.get('test', b'testing')
- commitopts.pop('test', b'testing')
- commitopts.setdefault('test', b'testing')
+ Traceback (most recent call last):
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 345, in <module>
+ main()
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 338, in main
+ process(fin, fout, opts)
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 264, in process
+ fout.write(tokenize.untokenize(tokens))
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 338, in untokenize
+ out = ut.untokenize(iterable)
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 247, in untokenize
+ for t in it:
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 161, in replacetokens
+ if t.type == token.COMMENT:
+ AttributeError: module 'token' has no attribute 'COMMENT'
+ [1]
Test attr*() as methods
@@ -111,18 +125,21 @@
> pass
> EOF
$ byteify_strings testfile.py --allow-attr-methods
- setattr(o, 'a', 1)
- util.setattr(o, 'ae', 1)
- util.getattr(o, 'alksjdf', b'default')
- util.addattr(o, 'asdf')
- util.hasattr(o, 'lksjdf', b'default')
- util.safehasattr(o, 'lksjdf', b'default')
- @eh.wrapfunction(func, 'lksjdf')
- def f():
- pass
- @eh.wrapclass(klass, 'lksjdf')
- def f():
- pass
+ Traceback (most recent call last):
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 345, in <module>
+ main()
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 338, in main
+ process(fin, fout, opts)
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 264, in process
+ fout.write(tokenize.untokenize(tokens))
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 338, in untokenize
+ out = ut.untokenize(iterable)
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 247, in untokenize
+ for t in it:
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 161, in replacetokens
+ if t.type == token.COMMENT:
+ AttributeError: module 'token' has no attribute 'COMMENT'
+ [1]
Test without attr*() as methods
@@ -141,18 +158,21 @@
> pass
> EOF
$ byteify_strings testfile.py
- setattr(o, 'a', 1)
- util.setattr(o, b'ae', 1)
- util.getattr(o, b'alksjdf', b'default')
- util.addattr(o, b'asdf')
- util.hasattr(o, b'lksjdf', b'default')
- util.safehasattr(o, b'lksjdf', b'default')
- @eh.wrapfunction(func, b'lksjdf')
- def f():
- pass
- @eh.wrapclass(klass, b'lksjdf')
- def f():
- pass
+ Traceback (most recent call last):
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 345, in <module>
+ main()
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 338, in main
+ process(fin, fout, opts)
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 264, in process
+ fout.write(tokenize.untokenize(tokens))
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 338, in untokenize
+ out = ut.untokenize(iterable)
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 247, in untokenize
+ for t in it:
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 161, in replacetokens
+ if t.type == token.COMMENT:
+ AttributeError: module 'token' has no attribute 'COMMENT'
+ [1]
Test ignore comments
@@ -173,20 +193,21 @@
>
> EOF
$ byteify_strings testfile.py
- # py3-transform: off
- "none"
- "of"
- 'these'
- s = """should"""
- d = '''be'''
- # py3-transform: on
- b"this should"
- b'and this also'
-
- # no-py3-transform
- l = "this should be ignored"
- l2 = b"this shouldn't"
-
+ Traceback (most recent call last):
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 345, in <module>
+ main()
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 338, in main
+ process(fin, fout, opts)
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 264, in process
+ fout.write(tokenize.untokenize(tokens))
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 338, in untokenize
+ out = ut.untokenize(iterable)
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 247, in untokenize
+ for t in it:
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 161, in replacetokens
+ if t.type == token.COMMENT:
+ AttributeError: module 'token' has no attribute 'COMMENT'
+ [1]
Test triple-quoted strings
$ cat > testfile.py <<EOF
@@ -201,15 +222,21 @@
> '''
> EOF
$ byteify_strings testfile.py
- """This is ignored
- """
-
- line = b"""
- This should not be
- """
- line = b'''
- Neither should this
- '''
+ Traceback (most recent call last):
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 345, in <module>
+ main()
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 338, in main
+ process(fin, fout, opts)
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 264, in process
+ fout.write(tokenize.untokenize(tokens))
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 338, in untokenize
+ out = ut.untokenize(iterable)
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 247, in untokenize
+ for t in it:
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 161, in replacetokens
+ if t.type == token.COMMENT:
+ AttributeError: module 'token' has no attribute 'COMMENT'
+ [1]
Test prefixed strings
@@ -218,8 +245,21 @@
> obj[r'test'] = u"1234"
> EOF
$ byteify_strings testfile.py
- obj[b'test'] = b"1234"
- obj[r'test'] = u"1234"
+ Traceback (most recent call last):
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 345, in <module>
+ main()
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 338, in main
+ process(fin, fout, opts)
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 264, in process
+ fout.write(tokenize.untokenize(tokens))
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 338, in untokenize
+ out = ut.untokenize(iterable)
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 247, in untokenize
+ for t in it:
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 161, in replacetokens
+ if t.type == token.COMMENT:
+ AttributeError: module 'token' has no attribute 'COMMENT'
+ [1]
Test multi-line alignment
@@ -245,22 +285,18 @@
> }
> EOF
$ byteify_strings testfile.py
- def foo():
- error.Abort(_(b"foo"
- b"bar"
- b"%s")
- % parameter)
- {
- b'test': dict,
- b'test2': dict,
- }
- [
- b"thing",
- b"thing2"
- ]
- (
- b"tuple",
- b"tuple2",
- )
- {b"thing",
- }
+ Traceback (most recent call last):
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 345, in <module>
+ main()
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 338, in main
+ process(fin, fout, opts)
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 264, in process
+ fout.write(tokenize.untokenize(tokens))
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 338, in untokenize
+ out = ut.untokenize(iterable)
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/tokenize.py", line 247, in untokenize
+ for t in it:
+ File "/hgwork/src/tests/../contrib/byteify-strings.py", line 161, in replacetokens
+ if t.type == token.COMMENT:
+ AttributeError: module 'token' has no attribute 'COMMENT'
+ [1]
test-check-module-imports.t
--- /hgwork/src/tests/test-check-module-imports.t
+++ /hgwork/src/tests/test-check-module-imports.t.err
@@ -38,3 +38,20 @@
> -X tests/test-imports-checker.t > -X tests/test-verify-repo-operations.py > | sed 's-\-/-g' | "$PYTHON" "$import_checker" -
+ contrib/ci/lambda_functions/ci.py:20: direct symbol import Key from boto3.dynamodb.conditions
+ contrib/ci/lambda_functions/web.py:16: direct symbol import Key from boto3.dynamodb.conditions
+ Traceback (most recent call last):
+ File "/hgwork/src/tests/../contrib/import-checker.py", line 813, in <module>
+ sys.exit(int(main(sys.argv)))
+ File "/hgwork/src/tests/../contrib/import-checker.py", line 780, in main
+ for src, modname, name, line in sources(source_path, localmodname):
+ File "/hgwork/src/tests/../contrib/import-checker.py", line 758, in sources
+ for script, modname, t, line in embedded(f, modname, src):
+ File "/hgwork/src/tests/../contrib/import-checker.py", line 728, in embedded
+ for name, starts, ends, code in testparseutil.pyembedded(f, src, errors):
+ File "/hgwork/src/contrib/testparseutil.py", line 186, in embedded
+ for lineno, line in enumerate(lines, 1):
+ File "/hgdev/pyenv/versions/3.6.9/lib/python3.6/encodings/ascii.py", line 26, in decode
+ return codecs.ascii_decode(input, self.errors)[0]
+ UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 996: ordinal not in range(128)
+ [1]
test-convert-tla.t
--- /hgwork/src/tests/test-convert-tla.t
+++ /hgwork/src/tests/test-convert-tla.t.err
@@ -96,15 +96,8 @@
$ hg convert tla-repo tla-repo-hg
initializing destination tla-repo-hg repository
analyzing tree version tla@mercurial--convert/tla--test--0...
- scanning source...
- sorting...
- converting...
- 5 initial import
- 4 added a file, src and src/b (binary)
- 3 added link to a and modify a
- 2 added second link and modify b
- 1 file to link and link to file test
- 0 move and rename a-link-2 file and src directory
+ abort: could not parse cat-log of tla@mercurial--convert/tla--test--0--patch-5
+ [255]
$ tla register-archive -d tla@mercurial--convert
$ glog()
> {
@@ -114,21 +107,5 @@
show graph log
$ glog -R tla-repo-hg
- o 5 "move and rename a-link-2 file and src directory" files: c src/a-link src/a-link-2 src/b test/a-link test/b
- |
- o 4 "file to link and link to file test" files: src/a-link-2 src/b
- |
- o 3 "added second link and modify b" files: src/a-link-2 src/b
- |
- o 2 "added link to a and modify a" files: a src/a-link
- |
- o 1 "added a file, src and src/b (binary)" files: a src/b
- |
- o 0 "initial import" files:
-
$ hg up -q -R tla-repo-hg
$ hg -R tla-repo-hg manifest --debug
- c4072c4b72e1cabace081888efa148ee80ca3cbb 644 a
- 0201ac32a3a8e86e303dff60366382a54b48a72e 644 c
- c0067ba5ff0b7c9a3eb17270839d04614c435623 644 @ test/a-link
- 375f4263d86feacdea7e3c27100abd1560f2a973 644 @ test/b
test-highlight.t
--- /hgwork/src/tests/test-highlight.t
+++ /hgwork/src/tests/test-highlight.t.err
@@ -967,6 +967,10 @@
$ hg init eucjp
$ cd eucjp
$ "$PYTHON" -c 'print("µþ")' >> eucjp.txt # Japanese kanji "Kyo"
+ Traceback (most recent call last):
+ File "<string>", line 1, in <module>
+ UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
+ [1]
$ hg ci -Ama
adding eucjp.txt
$ hgserveget () {
test-hook.t
--- /hgwork/src/tests/test-hook.t
+++ /hgwork/src/tests/test-hook.t.err
@@ -978,9 +978,24 @@
SyntaxError: * (glob)
exception from second failed import attempt:
Traceback (most recent call last):
- ImportError: No module named hgext_syntaxerror
+ SyntaxError: unexpected EOF while parsing
+
+ During handling of the above exception, another exception occurred:
+
Traceback (most recent call last):
- HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed
+ ModuleNotFoundError: No module named 'hgext_syntaxerror'
+ Traceback (most recent call last):
+ SyntaxError: unexpected EOF while parsing
+
+ During handling of the above exception, another exception occurred:
+
+ Traceback (most recent call last):
+ ModuleNotFoundError: No module named 'hgext_syntaxerror'
+
+ During handling of the above exception, another exception occurred:
+
+ Traceback (most recent call last):
+ mercurial.error.HookLoadError: b'preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed'
abort: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed
$ echo '[hooks]' > ../a/.hg/hgrc
@@ -1113,7 +1128,7 @@
$ hg id
loading pre-identify.npmd hook failed:
- abort: No module named repo!
+ abort: No module named 'repo'!
[255]
$ cd ../../b
@@ -1133,12 +1148,27 @@
$ hg --traceback commit -ma 2>&1 | egrep -v '^( +File| [a-zA-Z(])'
exception from first failed import attempt:
Traceback (most recent call last):
- ImportError: No module named somebogusmodule
+ ModuleNotFoundError: No module named 'somebogusmodule'
exception from second failed import attempt:
Traceback (most recent call last):
- ImportError: No module named hgext_importfail
+ ModuleNotFoundError: No module named 'somebogusmodule'
+
+ During handling of the above exception, another exception occurred:
+
Traceback (most recent call last):
- HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed
+ ModuleNotFoundError: No module named 'hgext_importfail'
+ Traceback (most recent call last):
+ ModuleNotFoundError: No module named 'somebogusmodule'
+
+ During handling of the above exception, another exception occurred:
+
+ Traceback (most recent call last):
+ ModuleNotFoundError: No module named 'hgext_importfail'
+
+ During handling of the above exception, another exception occurred:
+
+ Traceback (most recent call last):
+ mercurial.error.HookLoadError: b'precommit.importfail hook is invalid: import of "importfail" failed'
abort: precommit.importfail hook is invalid: import of "importfail" failed
Issue1827: Hooks Update & Commit not completely post operation
test-install.t
--- /hgwork/src/tests/test-install.t
+++ /hgwork/src/tests/test-install.t.err
@@ -155,12 +155,132 @@
debuginstall extension support
$ hg debuginstall --config extensions.fsmonitor= --config fsmonitor.watchman_exe=false | grep atchman
+ ** unknown exception encountered, please report by visiting
+ ** https://mercurial-scm.org/wiki/BugTracker
+ ** Python 3.6.9 (default, Oct 16 2019, 02:23:51) [GCC 8.3.0]
+ ** Mercurial Distributed SCM (version 5.1.2+610-1cb7facd85b4)
+ ** Extensions loaded: fsmonitor
+ Traceback (most recent call last):
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/watchmanclient.py", line 97, in _command
+ return self._watchmanclient.query(*watchmanargs)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/pywatchman/__init__.py", line 996, in query
+ self._connect()
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/pywatchman/__init__.py", line 863, in _connect
+ self.sockpath = self._resolvesockname()
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/pywatchman/__init__.py", line 848, in _resolvesockname
+ raise WatchmanError("watchman exited with code %d" % exitcode)
+ hgext.fsmonitor.pywatchman.WatchmanError: watchman exited with code 1
+
+ During handling of the above exception, another exception occurred:
+
+ Traceback (most recent call last):
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/__init__.py", line 188, in debuginstall
+ v = c.command(b"version")
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/watchmanclient.py", line 108, in command
+ return self._command(*args)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/watchmanclient.py", line 103, in _command
+ raise Unavailable(str(ex))
+ hgext.fsmonitor.watchmanclient.Unavailable: <exception str() failed>
+
+ During handling of the above exception, another exception occurred:
+
+ Traceback (most recent call last):
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/bin/hg", line 36, in <module>
+ dispatch.run()
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 111, in run
+ status = dispatch(req)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 250, in dispatch
+ ret = _runcatch(req) or 0
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 424, in _runcatch
+ return _callcatch(ui, _runcatchfunc)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 433, in _callcatch
+ return scmutil.callcatch(ui, func)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/scmutil.py", line 177, in callcatch
+ return func()
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 414, in _runcatchfunc
+ return _dispatch(req)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 1174, in _dispatch
+ lui, repo, cmd, fullargs, ui, options, d, cmdpats, cmdoptions
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 862, in runcommand
+ ret = _runcommand(ui, options, cmd, d)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 1185, in _runcommand
+ return cmdfunc()
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 1171, in <lambda>
+ d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/util.py", line 1843, in check
+ return func(*args, **kwargs)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/debugcommands.py", line 1696, in debuginstall
+ problems += handler(ui, fm)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/__init__.py", line 195, in debuginstall
+ err = str(e)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/watchmanclient.py", line 27, in __str__
+ return b'warning: Watchman unavailable: %s' % self.msg
+ TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
fsmonitor checking for watchman binary... (false)
- watchman binary missing or broken: warning: Watchman unavailable: watchman exited with code 1
Verify the json works too:
$ hg debuginstall --config extensions.fsmonitor= --config fsmonitor.watchman_exe=false -Tjson | grep atchman
- "fsmonitor-watchman": "false",
- "fsmonitor-watchman-error": "warning: Watchman unavailable: watchman exited with code 1",
+ ** unknown exception encountered, please report by visiting
+ ** https://mercurial-scm.org/wiki/BugTracker
+ ** Python 3.6.9 (default, Oct 16 2019, 02:23:51) [GCC 8.3.0]
+ ** Mercurial Distributed SCM (version 5.1.2+610-1cb7facd85b4)
+ ** Extensions loaded: fsmonitor
+ Traceback (most recent call last):
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/watchmanclient.py", line 97, in _command
+ return self._watchmanclient.query(*watchmanargs)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/pywatchman/__init__.py", line 996, in query
+ self._connect()
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/pywatchman/__init__.py", line 863, in _connect
+ self.sockpath = self._resolvesockname()
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/pywatchman/__init__.py", line 848, in _resolvesockname
+ raise WatchmanError("watchman exited with code %d" % exitcode)
+ hgext.fsmonitor.pywatchman.WatchmanError: watchman exited with code 1
+
+ During handling of the above exception, another exception occurred:
+
+ Traceback (most recent call last):
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/__init__.py", line 188, in debuginstall
+ v = c.command(b"version")
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/watchmanclient.py", line 108, in command
+ return self._command(*args)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/watchmanclient.py", line 103, in _command
+ raise Unavailable(str(ex))
+ hgext.fsmonitor.watchmanclient.Unavailable: <exception str() failed>
+
+ During handling of the above exception, another exception occurred:
+
+ Traceback (most recent call last):
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/bin/hg", line 36, in <module>
+ dispatch.run()
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 111, in run
+ status = dispatch(req)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 250, in dispatch
+ ret = _runcatch(req) or 0
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 424, in _runcatch
+ return _callcatch(ui, _runcatchfunc)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 433, in _callcatch
+ return scmutil.callcatch(ui, func)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/scmutil.py", line 177, in callcatch
+ return func()
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 414, in _runcatchfunc
+ return _dispatch(req)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 1174, in _dispatch
+ lui, repo, cmd, fullargs, ui, options, d, cmdpats, cmdoptions
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 862, in runcommand
+ ret = _runcommand(ui, options, cmd, d)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 1185, in _runcommand
+ return cmdfunc()
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/dispatch.py", line 1171, in <lambda>
+ d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/util.py", line 1843, in check
+ return func(*args, **kwargs)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/mercurial/debugcommands.py", line 1696, in debuginstall
+ problems += handler(ui, fm)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/__init__.py", line 195, in debuginstall
+ err = str(e)
+ File "/hgwork/tmp/hgtests.yi5k5e6l/install/lib/python/hgext/fsmonitor/watchmanclient.py", line 27, in __str__
+ return b'warning: Watchman unavailable: %s' % self.msg
+ TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
+ [1]
#if test-repo