TypeError using brz in non-brz git repository
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Breezy |
New
|
Undecided
|
Unassigned |
Bug Description
Similar problem to https:/
/opt/pkg/bin/brz info
brz: ERROR: TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Traceback (most recent call last):
File "/opt/pkg/
return the_callable(*args, **kwargs)
File "/opt/pkg/
ret = run(*run_argv)
File "/opt/pkg/
return self.run(
File "/opt/pkg/
return self._operation
File "/opt/pkg/
self.cleanups, self.func, *args, **kwargs)
File "/opt/pkg/
result = func(*args, **kwargs)
File "/opt/pkg/
result = func(*args, **kwargs)
File "/opt/pkg/
verbose=
File "/opt/pkg/
recommend_
File "/opt/pkg/
return GitWorkingTree(
File "/opt/pkg/
self.
File "/opt/pkg/
self.
File "/opt/pkg/
type_num, uncomp = self.get_raw(sha)
File "/opt/pkg/
for pack in self.packs:
File "/opt/pkg/
self.
File "/opt/pkg/
for pack in self._load_packs():
File "/opt/pkg/
if name.startswith
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
brz 3.0a1 on python 3.7.0 (Darwin-
arguments: ['/opt/
plugins: bash_completion
commitfromn
fastimport[
netrc_
repodebug[
encoding: 'utf-8', fsenc: 'utf-8', lang: 'en_CA.UTF-8'
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
I should mention: I was trying `brz` in a git repository checked out from git. Fixing the above produces a new bug:
brz info
brz: ERROR: TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last): lib/python3. 7/site- packages/ breezy/ commands. py", line 1009, in exception_ to_return_ code lib/python3. 7/site- packages/ breezy/ commands. py", line 1194, in run_bzr lib/python3. 7/site- packages/ breezy/ commands. py", line 760, in run_argv_aliases **all_cmd_ args) lib/python3. 7/site- packages/ breezy/ commands. py", line 784, in run .run_simple( *args, **kwargs) lib/python3. 7/site- packages/ breezy/ cleanup. py", line 136, in run_simple lib/python3. 7/site- packages/ breezy/ cleanup. py", line 165, in _do_with_cleanups lib/python3. 7/site- packages/ breezy/ commands. py", line 1211, in ignore_pipe lib/python3. 7/site- packages/ breezy/ builtins. py", line 1844, in run noise_level, outfile=self.outf) lib/python3. 7/site- packages/ breezy/ info.py" , line 354, in show_bzrdir_info upgrade= False) lib/python3. 7/site- packages/ breezy/ git/dir. py", line 593, in open_workingtree self, repo, branch) lib/python3. 7/site- packages/ breezy/ git/workingtree .py", line 122, in __init__ _reset_ data() lib/python3. 7/site- packages/ breezy/ git/workingtree .py", line 677, in _reset_data store._ _getitem_ _, self.store[ head].tree) lib/python3. 7/site- packages/ dulwich/ object_ store.py" , line 119, in __getitem__ lib/python3. 7/site- packages/ dulwich/ object_ store.py" , line 446, in get_raw lib/python3. 7/site- packages/ breezy/ git/transportgi t.py", line 594, in packs _update_ pack_cache( ) lib/python3. 7/site- packages/ breezy/ git/transportgi t.py", line 598, in _update_pack_cache lib/python3. 7/site- packages/ breezy/ git/transportgi t.py", line 627, in _load_packs transport. stat(name) .st_size lib/python3. 7/site- packages/ breezy/ transport/ local.py" , line 484, in stat relpath) lib/python3. 7/site- packages/ breezy/ transport/ local.py" , line 99, in _abspath unescape( relative_ reference) lib/python3. 7/site- packages/ breezy/ urlutils. py", line 684, in unescape unquote( url) lib/python3. 7/urllib/ parse.py" , line 609, in unquote
File "/opt/pkg/
return the_callable(*args, **kwargs)
File "/opt/pkg/
ret = run(*run_argv)
File "/opt/pkg/
return self.run(
File "/opt/pkg/
return self._operation
File "/opt/pkg/
self.cleanups, self.func, *args, **kwargs)
File "/opt/pkg/
result = func(*args, **kwargs)
File "/opt/pkg/
result = func(*args, **kwargs)
File "/opt/pkg/
verbose=
File "/opt/pkg/
recommend_
File "/opt/pkg/
return GitWorkingTree(
File "/opt/pkg/
self.
File "/opt/pkg/
self.
File "/opt/pkg/
type_num, uncomp = self.get_raw(sha)
File "/opt/pkg/
for pack in self.packs:
File "/opt/pkg/
self.
File "/opt/pkg/
for pack in self._load_packs():
File "/opt/pkg/
size = self.pack_
File "/opt/pkg/
path = self._abspath(
File "/opt/pkg/
return self._local_base + urlutils.
File "/opt/pkg/
return urlparse.
File "/opt/pkg/
if '%' not in string:
TypeError: a bytes-like object is required, not 'str'
brz 3.0a1 on python 3.7.0 (Darwin- 17.7.0- x86_64- i386-64bit) pkg/bin/ brz', 'info'] [3.0a1] , changelog_ merge[3. 0a1],
arguments: ['/opt/
plugins: bash_completion
...